[lug] Highlight logs

Michael Hirsch mdhirsch at gmail.com
Thu Feb 10 12:10:48 MST 2005


On Thu, 10 Feb 2005 11:11:56 -0700, Kyle Moore <kmoore at mooreimages.com> wrote:
> Does anyone know a way to highlight a certain string of text in your
> terminal when you are tailing a log? For instance, I'm tailing my
> maillog and want any "refused" entries to be red as they go by on the
> screen. Or it could just as easily be I'm starting up JBoss with debug
> logging and want to color certain strings of text to make them
> noticeable in the large volume of data streaming past.

I don't know of a utility for doing exactly that.  There is multitail
which has some built-in grep abilities, but I think that acts more as
a filter.

Wouldn't be too hard to write a little scriptlet in perl or python to
do it, though.

Michael



More information about the LUG mailing list