Good log colorizing script?

5

0

I'm looking for a script which I can pipe a log into, specifically the tail -f of a log, and it will colorize it. Log would be in syslog format but if there's a program that handles multiple formats (apache, exim, etc) that would be a plus. I used to have one of these back 9 years ago, a nifty little perl script, and I can't find it anymore!

Josh

Posted 2009-09-21T23:38:46.697

Reputation: 7 540

Answers

4

Check out colorize.pl -- an old favorite of mine for exactly this use.

Chris_K

Posted 2009-09-21T23:38:46.697

Reputation: 7 943

Awesome, I think that was it! I don't know why I couldn't find this after 1+ hour of googling. Do you know a good config for syslog? – Josh – 2009-09-22T03:08:16.513

afraid I can't offer much help for a nice syslog config. I've only used it to tail apache logs for specific events. :-) – Chris_K – 2009-09-22T03:58:06.180

2

I like multitail. You can see it on work on: http://satukubik.com/2010/01/07/multitail-colorize-your-log-files/

nanda

Posted 2009-09-21T23:38:46.697

Reputation: 225