This App is An Advanced Log File Viewer – lnav
lnav is an advanced log file viewer for Linux systems.
lnav can unzip all the compressed log files on the fly and merge them together for a nice display. The display is parsed and formatted based on the types of errors/warnings – this helps to quickly glance through the thousands of logs, specially in servers.
While analysing the logs, timestamps are very important. So lnav mergers multiple logs based on timestamps and this is very helpful to track down system issues.
Most of the important log file format detection is built-in, see below:
- Common Web Access Log format
- CUPS page_log
- VMware ESXi/vCenter Logs
- “Generic” – Any message that starts with a timestamp
- GZIP, BZIP
That is not all, lnav is also capable of below features which makes it an important app for Linux systems.
- Filter messages based on regular expression
- Timeline view of errors
- Pretty-Print view- helps to reformat
- Query Log using SQL
- Log is updated in real-time while being searched
- Syntax highlight via regular expression (say you want to find out an IP address in entire log)
- Tab completion of any word from the log which is displayed !!
To look at the screenshots of above features and learn more, visit this page.
How to Install
lnav latest version is 0.8.1. lnav comes with pre-compiled binary, you can just unzip and run.
For Ubuntu, Linux Mint and other derivatives, download below file, extract it and run via terminal by running.
For Fedora, RHEL, download below file, unzip and run via terminal.
Command from terminal:
You can report any issues @ GitHub.