LinuxCommandLibrary

ccze

modular log colorizer

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 modular log colorizer written in C for high performance. It reads log data from standard input and outputs colorized text using ANSI escape codes or HTML, making log files much easier to scan visually.
The tool uses a plugin architecture to recognize and colorize different log formats including syslog, Apache httpd, Postfix, Squid, Exim, fetchmail, procmail, and vsftpd. Each plugin understands the structure of its target log format and applies appropriate colors to timestamps, hostnames, severity levels, and other fields.
Output defaults to ncurses mode but the `-A` flag produces raw ANSI output suitable for piping to `less -R` or other tools.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community