LinuxCommandLibrary

ccze

TLDR

Colorize log file

$ cat [/var/log/syslog] | ccze
copy
Follow log with colors
$ tail -f [/var/log/syslog] | ccze
copy
Raw ANSI output for less
$ cat [logfile] | ccze -A | less -R
copy
HTML output
$ cat [logfile] | ccze -h > [output.html]
copy
Disable lookups for speed
$ cat [logfile] | ccze -A -o nolookups | less -R
copy
List available plugins
$ ccze -l
copy

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.

SEE ALSO

tail(1), less(1), multitail(1)

Copied to clipboard