How to colorize your logs with CCZE

How to colorize your logs with CCZE

  • by Tyler (248)
  • Time to complete: 2 minutes

If you spend a lot of time staring at log files, you might want to consider installing CCZE. CCZE is a tool that color highlights your log files making them much easier to read.

1

Red Hat/Centos

yum install ccze

Debian/Ubuntu

apt-get install ccze

Mac (using Homebrew)

brew install ccze
2

Usage
tail -f -n 100 /var/log/syslog | ccze
3

If you use this frequently, you might consider adding a tailc function to your shell rc file.

tailc () {
    tail $@ | ccze -A
}

Then use tailc just as you would tail.

tailc -F -n 50 /var/log/somelog.log