Colorize log files on CentOS and Ubuntu using ccze tool


ccze is a wonderful tool that brings real joy to the arduous task of reading or searching thru log files. It uses a modular approach to support custom colour formatting for popular applications such as Apache, Postfix, Exim, etc.

Install ccze on CentOS and Fedora linux

First enable Epel repository and run following command:

Install ccze on Debian/Ubuntu linux

On Debian/Ubuntu, you can use apt-get to install:

How to use ccze tool

ccze colourises logs that are sent to standard out, for example, we can use tailf to follow a log file and then prettify the output by piping to ccze, examples:



You can also export log files to html file using ccze tool:

… and open it in your favorite browser afterwards.

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [point] com