MultiTail is an open-source ncurses utility that can be used to display multiple log files to standard output in a single window or a single shell that shows last few lines of log files in a real-time like tail command which split console into more subwindows

Step1. Install the package

yum install -y multitail

Step2. To view two files in two columns

multitail -s 2 /var/log/maillog /var/log/messages

Note:: Use ‘b‘ and select the file you want from the list

Step3. How to view multiple files in multiple columns

multitail -s 3 /var/log/maillog /var/log/messages /var/log/yum.log

Step4. Merge/view multiple files in multiple columns

multitail -s 2 -sn 1,3  /var/log/httpd/error.log -I /var/log/maillog /var/log/monitorix /var/log/messages /var/log/yum.log

Step5. How to merge/view two files in a different color

multitail -ci green /var/log/yum.log -ci yellow -I /var/log/messages


Please enter your comment!
Please enter your name here