ccze
TLDR
Colorize log file
$ cat [/var/log/syslog] | ccze
Follow log with colors$ tail -f [/var/log/syslog] | ccze
Raw ANSI output for less$ cat [logfile] | ccze -A | less -R
HTML output$ cat [logfile] | ccze -h > [output.html]
Disable lookups for speed$ cat [logfile] | ccze -A -o nolookups | less -R
List available plugins$ ccze -l
SYNOPSIS
ccze [options]
DESCRIPTION
ccze is a robust modular log colorizer with plugins for syslog, httpd, postfix, squid, exim, fetchmail, procmail, vsftpd, and more. Faster than colorize (written in C).
PARAMETERS
-A, --raw-ansi
Generate raw ANSI output-c key=color
Set color for key-C, --convert-date
Convert UNIX timestamps to readable format-h, --html
Generate HTML output-l, --list-plugins
List available plugins-p plugin
Load specific plugin-o option
Set option (e.g., nolookups)
CONFIGURATION
/etc/cczerc
System-wide configuration~/.cczerc
User configuration
PLUGINS
Located in /usr/lib/ccze and ~/.ccze. Support for:
- syslog, httpd, postfix
- squid, exim, fetchmail
- procmail, vsftpd, xferlog
- ulogd, apm
CAVEATS
Use -o nolookups for faster processing of long logs. Lookups resolve usernames and services but slow down colorization.


