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


12 comments so far

Add Your Comment
  1. Mischa ter Smitten

    The RPM can be downloaded from


  2. Mischa ter Smitten

    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. Mischa ter Smitten

    Very useful

  4. Mischa ter Smitten

    How to pause it?

  5. Mischa ter Smitten

    This is one of my most useful favorite tools!

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

  6. Mischa ter Smitten

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

  7. Mischa ter Smitten


    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. Mischa ter Smitten


  9. Mischa ter Smitten

    For better performance I have been adding the “-o nolookups” option

    $ cat filename | ccze -A -o nolookups | less -R

  10. Mischa ter Smitten


  11. Mischa ter Smitten

    Nice! Thanks!