Tail is a command in unix like systems for viewing log files. We can view only one log at a time , for viewing multiple log files we can use multitail.
1.Installation
yum install multitail (For Redhat , Centos )
apt-get install multitail (Ubuntu ,Debian )
2.Usage
multitail -f /var/log/httpd/error_log /var/log/httpd/access_log
3.Also you can run a command and watch its output
multitail -f /var/log/iptable.log "ping server.com"
4.You can see 3 files in 2 columns
multitail -s 2 /var/log/qmail_pop.log /var/log/qmail_send.log /var/log/spamassassin.log
Enjoy !!!
No comments:
Post a Comment