Lnav – advanced log viewer

Hello,
I found some information online about the ‘lnav’ (Log File Navigator) tool, a powerful log viewer for the terminal that can do far more than ‘tail’, ‘less’ or ‘grep’.
Installation:

sudo apt update
sudo apt install lnav

A few commands:

lnav					    # load the default system log (/var/log/syslog)
lnav /var/log/			    # loads all log files in /var/log/
journalctl -f | lnav		# real-time stream of the systemd log
lnav /var/log/dmesg		    # opens the kernel ring buffer from the last boot
lnav /var/log/kern.log      # opens the kernel log with colour coding
sudo lnav /var/log/boot.log	# opens the system boot log

To search for a word in lnav, press ‘ / ’ and enter for example the word Error.
? is for help

1 Like