2010
05.20

A few days ago I was visiting one of my favorite sites (commandlinefu) and read something about “Color Highlighted Log Viewing” so I tried it and was instantly hooked. According to it’s website: “CCZE is a robust and modular log colorizer with plugins for apm, exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, xferlog, and more”

Usage is really simple. Just install it:

yum install ccze (Red Hat/CentOS)
apt-get install ccze (Debian/Ubuntu)

And use it like:

tail -f -n 50 /var/log/syslog | ccze

You will see something like this:

CCZE Colored logs

CCZE Colored logs


References:

8 comments so far

Add Your Comment
  1. The RPM can be downloaded from

    http://koji.fedoraproject.org/koji/buildinfo?buildID=126103

  2. for some reason, if you want to colorize one-time (not following i.e. tail -f) you need to specify ccze -A for ANSI

  3. Excellent
    Very useful

  4. How to pause it?

  5. This is one of my most useful favorite tools!

    Screenshot from http://www.askapache.com/linux/elite-log-file-scrolling-color-syntax.html

  6. Can not get scrollback to work. so close to being awesome…

  7. @Zee

    1 year old post but just in case :

    $ cat /var/log/ufw.log | ccze -A | less -R

    will let you use ‘less’ in colorized version.

  8. Awesome!