You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
>>>importlog2seq>>>log2seq.__version__'0.4.0'>>>log2seq.init_parser().process_line("Jan 1 00:00:00 h hello world")["words"]
['hello', 'world']