Perl script to add nice colors to your /var/log/messages file


Written by Pavs on January 2nd, 2008

loco is a Perl script which gives the messages file (usually /var/log/messages) some color, so the output is easier to read. It uses a Perl module called Term::ANSIColor to produce the colors. The Perl script is very readable and customizable.

You could tail messages file and pipe to loco like this: tail -f /var/log/messages | loco

2008-01-02-094343_1280x800_scrot.png

Let’s see how it would look like without loco:

2008-01-02-100318_1280x800_scrot.png

Or you could call the whole messages file with loco: loco /var/log/messages

2008-01-02-094511_1280x800_scrot.png

Lets look at other logfiles with loco: /var/log/auth.log

2008-01-02-095349_1280x800_scrot.png

/var/log/rkhunter.log (log file for rootkit hunter program)

2008-01-02-095949_1280x800_scrot.png




Subscribe without commenting


Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.