Multitail

From MattWiki
(Redirected from MultiTail)
Jump to: navigation, search

MultiTail One Liners

Bind DNS Server

Display the bind.log on the local server and ns2

multitail -cs /var/log/named/bind.log -cs -l "ssh ns2.mattrude.com tail -f /var/log/named/bind.log"

SKS OpenPGP Keyserver

SKS-Keyserver on top - Nginx Keyserver Logs on bottom

multitail -ci blue /var/lib/sks/db.log -ci red -I /var/lib/sks/recon.log -cS Apache /var/log/nginx/keyserver-80.log -ci blue -I /var/log/nginx/keyserver-443.log -ci green -I /var/log/vsftpd.log

Bind Logs on top - Nginx Keyserver Logs on bottom

multitail -cs /var/log/named/bind.log -cS Apache /var/log/nginx/keyserver-80.log -ci blue -I /var/log/nginx/keyserver-443.log -ci green -I /var/log/vsftpd.log

Postfix Email Server

Display Postfix logs

multitail -ke "samantha" -cS postfix -m 2048 /var/log/maillog -s 2 -sn 1,3 -ke "samantha" -cS dhcpd -cS bind /var/log/messages -I /var/log/monit.log -I /var/log/secure /var/log/freshclam.log -I /var/log/virus.log

Nginx Web Server

Connect to remote system

multitail -cS Apache /var/log/nginx/error.log -cS Apache -I /var/log/nginx/access.log -cS Apache -L "ssh twyla tail -f /var/log/nginx/access.log"