CCZE(1)
π CCZE(1) β the robust log colorizer, bestie edition π
Okay so this is the manual page for the ccze utility β yes, that cute little log colorizer β and it's got its own CCZE(1) manual entry, which is very main character of it. Come sit with me, I'm gonna walk you through the whole thing π
β¨ NAME β¨
ccze β a robust log colorizer. That's the whole vibe. It colors your logs. Robustly. Periodt.
π¦ SYNOPSIS π¦
ccze [options] <logfile
Yeah bestie, it reads from standard input. Feed it a logfile, get pretty colors back π
πΈ DESCRIPTION πΈ
So this manual page documents, briefly, the ccze utility β which is a drop-in replacement for colorize, but rewritten in C so it's faster and less resource-hungry. The goal was to be fully backwards compatible, yet superior with respect to speed and features. Like, glow-up of the century honestly π
π OPTIONS π
These programs follow the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. Bloop π«§
-a,--argument PLUGIN=ARGUMENTSβ use this option to pass ARGUMENTS to the specified PLUGIN. The argument list is whitespace separated. One option, one plugin, no cap.-A,--raw-ansiβ if one wants to enable raw ANSI color sequences instead of using curses, this option does just that. That's it. That's the whole job β¨-c,--color KEY=COLORβ set the color of the keyword KEY to COLOR, like one would do in one of the configuration files. Same energy, command-line edition π-C,--convert-dateβ convert unix timestamp to readable date format (inoopsandsquidlogs, for example). Mathβvibes conversion, honestly π-F,--rcfile rcfileβ read rcfile as a configuration file upon startup, instead of the default ones. Your file, your rules π¦-h,--htmlβ instead of colorising the input onto the console, output it in HTML format instead. Blog-post ready π-l,--list-pluginsβ list all available (loaded) plugins, along with their type and a short description. It's giving roster reveal π-m,--mode modeβ change the output mode. Available modes arecurses,ansiandhtml. Pick your fighter π-o,--options OPTIONS...β CCZE is able to toggle some of its features with this option. You can toggle thescroll,wordcolor,lookups, andtransparentfeatures, or you can fiddle withcssfile. All of these are enabled by default, exceptcssfile. One can turn them off by prefixing the option with ano. Okay so here's the whole rundown, because each one has its own lore:- With
scroll, one can enable or disable scrolling. If the output is not redirected, it is wise to leave it enabled. Lowkey don't touch this one π - The
wordcoloroption makescczesearch for different keywords in unparsed input, and color those too. Since it is quite fast, and makes the output look better, it is recommended to leave this enabled. Free aesthetic upgrade, bestie π - However,
lookupsis an option that might be better to disable. When on,cczewill try to look up usernames, service names, and lots of other stuff, which will slow down coloring a great deal. If one is piping a long log throughccze, this option might be turned off to speed up the process. Big log energy = big slowdown energy π - With the
transparentoption, one can make CCZE treat black background colors as transparent β that means, a black background will appear transparent in a similar X terminal. If turned off, it will appear as black. Literally see-through vibes π§ - If
cssfileis set, then CCZE will not inline the Cascading Style Sheet information into the outputted HTML, but include a link to the external stylesheet given in this parameter. Separation of concerns, we love to see it π
- With
-p,--plugin PLUGINβ while the default action is to load all plugins (see the Plugins section below), when this option is present, only the specified plugins will be loaded. If one knows what kind of log will be piped throughccze, using this option may result in a slight speedup. Picky loader = speedy loader β-r,--remove-facilityβsyslog-ngputs the facility level before log messages. With this switch, these can be cut off. Snip snip βοΈ--helpβ show summary of options and exit. Help a girl out π«Ά-V,--versionβ show version of program. Number drop π₯
π PLUGINS π
Different programs have different kind of logs, and every kind of log ccze supports is implemented via a plug-in. They are by default located under /usr/lib64/ccze and $HOME/.ccze (so they can be overridden by the user easily). Cute, accessible, overridable π
At the moment, the following modules are bundled with the official release:
apmβ for coloringapmd's logs.distccβ for coloringdistccd's logs. (Seedistccd(1))eximβ for coloring exim'smain.log. (Seeexim(8))fetchmailβ for coloring fetchmail's log files. (Seefetchmail(1))ftpstatsβ for coloringftpStatscompatible log files, such as Pure-FTPD's Stats log format.httpdβ for coloring apache-styleaccess.loganderror.logfiles. (Seeapache(8))
As a side-effect, all compatible formats, like pure-ftpd(8)'s common-log format is also supported by this plugin. It ate and left no crumbs π
icecastβ for coloringicecast/icecast.logandicecast/usage.logfiles. (Seeicecast(8))oopsβ for coloringoops/oops.logfiles.phpβ for coloringphp.logfiles.postfixβ for coloring postfix logs. (Seepostfix(1))procmailβ for coloring procmail's log file. (Seeprocmail(1))proftpdβ for coloring proftpd'saccess.logandauth.logfiles. (Seeproftpd(8))squidβ for coloring squid'saccess.log,store.logandcache.logfiles. (Seesquid(8))sulogβ for coloringsulogfiles. (Seesu(1))superβ for coloringsuper.logfiles. (Seesuper(1))syslogβ for coloring generic syslog messages. (Seesyslogd(8))ulogdβ for coloringulogdlogs.vsftpdβ for coloringvsftpd.logfiles. (Seevsftpd(8))xferlogβ for coloringxferlogfiles. (Seexferlog(5))
π FILES π
/etc/colorizerc,$HOME/.colorizercβ these files are the default configuration files forcolorize, and are parsed bycczefor the sake of full compatibility. Legacy support, iconic behavior π/etc/cczerc,$HOME/.cczercβ this two are the main configuration files, in which one can change the colors used by the program to his liking. See the comments in the beginning of/etc/cczercfor a description on the files' structure. That's where you make it yours β¨
If neither of these files exist on your system, consider using the ccze-dump utility in the source tree, which dumps the default color set to standard output. No config files? No problem, bestie π«Ά
π¦ SEE ALSO π¦
colorize(1) β the origin story, go say hi π
π AUTHOR π
ccze was written by Gergely Nagy <algernon@bonehunter.rulez.org>, based on colorize by Istvan Karaszi <colorize@spam.raszi.hu>. Legends, both of them π
And that's the whole page, bestie β this was CCZE 0.2.1, dated 2003-04-24, brought to you by the CCZE manual itself π β¨ππ¦ No cap, go color some logs π
π¦ where this page comes from
- opensuse-leap 16.0: ccze 0.2.1.2-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ccze 0.2.1.2-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ccze 0.2.1.2-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ccze 0.2.1.2-bp160.1.11 Β· GPL-2.0-or-later
- Copyright (C) 2002, 2003 Gergely Nagy <algernon@@bonehunter.rulez.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms