Even though CCZE is very stable it is also very slow and may even look broken out of the box with the default configuration. Here I explain how to work around the two most important issues. You will love ccze for all your log colorizing.
CCZE is a nice text colorizer. Great for monitoring log files and other boring texts to better understand what is going on and find important events in the big haystack of endless data. Even though it is very stable it is also very slow and may even look broken with the default configuration. Here I explain how to work around the most important two.
On some CLI shells the ccze output may look all messed up. It is caused by a text encoding mismatch between the shell and ccze. I haven’t figured it out completely yet, but when you set the output mode to ‘ansi’ it all works fine. The tradeoff being that ANSI codes are longer than Curses. It can slow down the output rendering on slower terminals or connections.
tail -Fn /var/log/syslog | ccze -m ansi
Slow animated output
When you are sending your log tail or other shell command output to the ccze text colorizer, it looks like the colors are applied line by line. As if it is an 80’s computer that barely has the processing power to write any text to the screen. The slowness comes from ccze trying to do service, protocol and user name lookups on every word it finds!
To disable this feature specify the ‘nolookups’ option on the command line.
tail -Fn /var/log/syslog | ccze -o nolookups
Always set ANSI and nolookups
To always enable ansi mode and disable the word lookups I created an alias in my Bash config:
alias ccze='ccze -m ansi -o noloopups'
Depending on your system you can add it to
~/.bash_aliases or whatever you use. 😉