Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a cli (command line interface) program that would basically tail either 1 log or a set of logs in /var/log and on the fly output in a more friendly manner. Perl would be best but isn't a prerequisite.

share|improve this question
tail + awk + print doesn't do what you want? – Tim Post Oct 19 '09 at 7:39
awk is more awkward to me then vi lol – MrStatic Oct 19 '09 at 8:08
up vote 2 down vote accepted

If your system has watch and you're looking for something quick and dirty:

watch '( tail /var/log/logone;/bin/echo -e "\n--------\n";tail /var/log/logtwo )'

It's not necessary to use -f with tail since watch updates the display.

There are other better solutions, but if you find yourself in a bind sometimes this kind of thing will help.

share|improve this answer
This is more along the lines that I am looking for. Now I just need a wrapper of some sort to pretty up the output somewhat. – MrStatic Oct 19 '09 at 7:58
An accepted answer without a single up vote? Here's one on me. – John Gardeniers Oct 19 '09 at 11:33

Multitail allows you to "tail" several files at once. You could also open several windows inside a screen session and run less -F in each.

As for "output in a more friendly manner", that's very subjective, and also individual for each app. There are log viewers for many popular servers, e.g. AWStats. Just see if it does what you need. What exactly do you want to check?

Finally, instead of watching logs, for long-term server maintenance a monitoring software probably makes more sense. Check out e.g. Nagios or ZenOSS.

share|improve this answer
As far as I know AWStats is for apache logs. I am looking more for messages and secure. For the "friendly manner" More just filter out some stuff and rearrange and display other things in a different manner like if a line looks like a firewall output display this way. – MrStatic Oct 19 '09 at 7:43
Multi-tail is such an awesome app. +1 – Joseph Kern Oct 19 '09 at 15:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.