Nasser Heidari


MultiTail !!!

Filed under: Linux — Nasser Heidari @ 08:06

Imagine being able to use tail to follow multiple files in one window. That is what MultiTail does. MultiTail is a Linux administrators’ dream come true. With the ability to follow any log file (and as many log files as you can stand in one window) MultiTail can stack multiple tails of log files vertically or horizontally, with colors or without.

# multitail -s 2 /var/log/messages /var/log/security.log

above command will follow the messages and the security.log logs in two vertical columns in one window.

# multitail -R 2 -l "netstat -tunapo"

This runs netstat every 2 seconds and then shows what has changed since the previous run. That way one can see new connections being made and closed connections fading away.

# multitail logfile -l ""

This creates two windows. One with the contents of logfile, one with with the output of ‘ping’ .

# multitail /var/log/apache/access_log -I /var/log/apache/error_log

This creates one window with the contents of /var/log/apache/access_log merged with the contents of /var/log/apache/error_log.

MultiTail is very easy to use.
Thanks to Techrepublic


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: