- jump quickly to the previous/next error ([press `e`/`E`](https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation));
- search using regular expressions ([press `/`](https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation));
- highlight text with a regular expression ([`:highlight`](https://docs.lnav.org/en/latest/commands.html#highlight-pattern) command);
- filter messages using [regular expressions](https://docs.lnav.org/en/latest/usage.html#regular-expression-match) or [SQLite expressions](https://docs.lnav.org/en/latest/usage.html#sqlite-expression);
- pretty-print structured text ([press `P`](https://docs.lnav.org/en/latest/hotkeys.html#display));
- view a histogram of messages over time ([press `i`](https://docs.lnav.org/en/latest/hotkeys.html#display));
- query messages using SQLite ([press `;`](https://docs.lnav.org/en/latest/sqlext.html))
## Features
## Screenshot
- Log messages from different files are collated together into a single view
- Automatic detection of log format
- Automatic decompression of GZip and BZip2 files
- Filter log messages based on regular expressions
- Use SQL to analyze your logs
- And more...
The following screenshot shows a syslog file. Log lines are
displayed with highlights. Errors are red and warnings are yellow.
The Log File Navigator, [1mlnav[0m for short, is a log file viewer for the
terminal.
The Logfile Navigator is a log file viewer for the terminal. Given a
set of files, [1mlnav[0m will:
[33m•[0m decompress as needed;
[33m•[0m detect their format;
[33m•[0m merge the files together by time into a single view;
[33m•[0m monitor the files for new data or renames;
[33m•[0m build an index of errors and warnings.
Then, in the [1mlnav[0m TUI, you can:
[33m•[0m jump quickly to the previous/next error (]8;;https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation\[4mpress [0m]8;;\]8;;https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation\[4m[37m[40m e [0m]8;;\]8;;https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation\[4m/[0m]8;;\]8;;https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation\[4m[37m[40m E [0m]8;;\[4m[1][0m);
[33m•[0m search using regular expressions (]8;;https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation\[4mpress [0m]8;;\]8;;https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation\[4m[37m[40m / [0m]8;;\[4m[2][0m);
[33m•[0m highlight text with a regular expression (]8;;https://docs.lnav.org/en/latest/commands.html#highlight-pattern\[4m[37m[40m :highlight [0m]8;;\[4m[3][0m
command);
[33m•[0m filter messages using ]8;;https://docs.lnav.org/en/latest/usage.html#regular-expression-match\[4mregular expressions[0m]8;;\[4m[4][0m or ]8;;https://docs.lnav.org/en/latest/usage.html#sqlite-expression\[4mSQLite[0m]8;;\
[33m•[0m pretty-print structured text (]8;;https://docs.lnav.org/en/latest/hotkeys.html#display\[4mpress [0m]8;;\]8;;https://docs.lnav.org/en/latest/hotkeys.html#display\[4m[37m[40m P [0m]8;;\[4m[6][0m);
[33m•[0m view a histogram of messages over time (]8;;https://docs.lnav.org/en/latest/hotkeys.html#display\[4mpress [0m]8;;\]8;;https://docs.lnav.org/en/latest/hotkeys.html#display\[4m[37m[40m i [0m]8;;\[4m[7][0m);
[33m•[0m query messages using SQLite (]8;;https://docs.lnav.org/en/latest/sqlext.html\[4mpress [0m]8;;\]8;;https://docs.lnav.org/en/latest/sqlext.html\[4m[37m[40m ; [0m]8;;\[4m[8][0m)