how to monitor all logs…

as i was wondering what combination of less -R with or without ccze would allow me to view log files colorful (because a desert of black and white… does not give you a good overview / makes it hard to spot errors) and maybe even follow changes to the log file as errors occur (connections can not be made… for whatever reason) i searched and found: LNAV 🙂

it even allows you to navigate the log with cursor / page up / page down.

GREAT JOB! You just made mankind great again!

even better, it comes with the epel CentOS repository and thus is pretty easy to install.

„The Log File Navigator, lnav, is an enhanced log file viewer that takes advantage of any semantic information that can be gleaned from the files being viewed, such as timestamps and log levels. Using this extra semantic information, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and providing hotkeys for navigating through the file. It is hoped that these features will allow the user to quickly and efficiently zero in on problems.“ (src)

# setup
yum install lnav


# To load and follow (YESSSS!) the syslog file:
lnav -s

# To load all of the files in /var/log:
lnav /var/log
# To watch the output of make with timestamps prepended:
make 2>&1 | lnav -t



multitail or grc tail combination

grc tail -f /var/log/apache/access.log /var/log/apache/error.log

Generic Colouriser is yet another colouriser (written in python) for beautifying your logfiles or output of commands. To learn more, read the README file coming with it.

The official repository is on github now. You can download the tarball and Debian package from here. The software is licensed under GPLv2.

Screenshots: what would an application be without a screenshots?
Generic Colouriser in action:

  1. traceroute
  2. syslog