Watching those log files

w1z4rd

Karmic Sangoma
Joined
Jan 17, 2005
Messages
52,146
Reaction score
8,340
Location
127.0.0.1
I was wondering if anyone knew of a feature that would be able to show different outputs while using tail -f, in different colors.

Say I ran the command: #tail -f /var/log/maillog /var/log/messages /var/log/dansguardian/access.log

However, when looking at whats displayed from that command... I get each of the log files in a different color.

It would be real useful for me :D
 
You've given me an idea. I think I will write (no, not a script to accomplish this :D) a post discussing the different log files in Linux and what contains what. There is no better way to diagnose a Linux fault than by looking at the logs.

You might be able to write a script to do it. You could use sed to differentiate between the two logs, and then colour the output.
 
I never knew you could pass multiple files to tail!

you could use screen to split the console.

EDIT: you should also be able to do it with grc
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X