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. Alex

    The RPM can be downloaded from


  2. Mark

    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. anacondaweb

    Very useful

  4. Deepak

    How to pause it?

  5. AskApache

    This is one of my most useful favorite tools!

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

  6. Zee

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

  7. Agagax


    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. Eric

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

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

  10. AiO


  11. Peregrin

    Nice! Thanks!