agagliardi / lnav-formats

Log format description files for lnav

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log format description files for lnav

http://lnav.org is a powerful log file reader, designed to take multiple log files and order them by date. It understands log file formats using regular expresions and can highlight sections of line, find errors and warnings, and more.

This repository is for the log file format descriptions I've written so far.

You can install these by simply checking this directory out in your '~/.lnav/formats' directory.

lnav version

Some of these formats use features that are only available in lnav version 0.8.0 or above. If you get warnings, try renaming the offending files to .json-unused to see if this fixes things.

Easy creation of formats

I now provide a new tool, make_format.pl, which takes a series of lines from stdin and turns them into sample lines in a new format. This can, for instance, be used by marking several significant lines in lnav and issuing the command:

:pipe-to perl path/to/make_format.pl -name example -output example_log.json

Using the -name or -n option sets the name in the format. This is lazy, so you'll need to edit it to suit yourself. If this option is not specified the format name is 'NEW' throughout.

Using the -output or -o option sets the destination for the new format. If this is not specified the result will be written to standard output.

About

Log format description files for lnav

License:GNU General Public License v2.0


Languages

Language:Perl 100.0%