ccze
modular log colorizer
TLDR
Colorize log file
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.
