Skip to content

Installation

sat edited this page Jun 26, 2026 · 1 revision

Installation

log2seq is on PyPI and supports Python 3.8–3.12.

$ pip install log2seq

This pulls the one runtime dependency, click, which powers the command-line interface.

The command line

Installing also adds a log2seq console command. These two are equivalent:

$ log2seq app.log
$ python -m log2seq app.log

Both read log lines (from the given files or stdin), run them through a parser (the default, or one you supply with --parser), and print the results. See Practical Patterns for the CLI options and how to use it to debug a parser.

Verify

>>> import log2seq
>>> log2seq.__version__
'0.4.0'
>>> log2seq.init_parser().process_line("Jan  1 00:00:00 h hello world")["words"]
['hello', 'world']

Next

Clone this wiki locally