CentOS8: ccze author not willing to maintain ccze. no ccze and not even lnav available.

how to monitor all logs… https://dwaves.de/2017/06/15/linux-monitor-all-logs-in-real-time-d-follow-all-show-changes-to-log-files-under-varlog/

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

examples/usage/howtos:

# 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

manpage:

lnav.man.txt

alternatives:

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

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin