Command Line Tool of the Day: ccze – prettify your logs with colours!

1. What is ccze ?

ccze is a tool that colourises logs. It uses a modular approach to support custom colour formatting for popular applications such as Apache, Postfix, Exim, etc.

2. How to install ccze

In order to install ccze, you will first need to enable the EPEL repo. Once the EPEL repo is installed, ccze can be installed with following command:

yum install ccze

3. How to use ccze

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:

tailf /var/log/httpd/error_log | ccze
cat /var/log/httpd/error_log | ccze
tail -100 /var/log/httpd/error_log | ccze 

Other ccze options:

List ccze modules:

ccze -l

Output as HTML:

tail -10 /var/log/httpd/error_log | ccze -h


Scan to Donate Bitcoin
Like this? Donate Bitcoin to at:
Bitcoin 14M4a7UHEX61VoHkyjj4dxbUBNGGz3hmhM
Share This Post

About Author: Curtis K

Hi! My name is Curtis, and I am the creator of CentOS Blog. Please feel free to comment any suggestions, feedback or questions on my posts!