I will provide a code snippet using tmux that can give you two different windows you can use to tail both files simultaneously:
tmux new-window -a -n Tail
tmux new-session -d -s Tail -n SSH0 -d
tmux selectp -t Tail
#This is tmux interactions with the user (colors of the tabs used, hot keys, etc.)
tmux bind-key -n M-Left previous-window -t WinSplit
tmux bind-key -n M-Right next-window -t WinSplit
tmux set-window-option -g monitor-activity on
tmux set -g visual-activity on
tmux set-window-option -g window-status-current-bg blue
tmux set-window-option -g window-status-fg red
tmux set -g pane-border-fg yellow
tmux set -g pane-active-border-bg red
tmux set -g message-fg yellow
tmux set -g message-bg red
tmux set -g message-attr bright
tmux set -g status-left "#[fg=red]#S"
#Names two seperate windows
tmux new-window -n tail1 -t Tail
tmux new-window -n tail2 -t Tail
#Now this will allow you to automatically run tail when this tmux script is run
tmux send-keys -t Tail:0 'tail -f file1.log' C-m
tmux send-keys -t Tail:1 'tail -f file2.log' C-m
UPDATE: Using screen can also attach/detach multiple sessions so you can run tail multiple times as well. I can suggest doing this:
screen -s Tail_Server1.log
Next you would want to hold CTRL+A+D to dettach without killing the sessions and then next:
screen -s Tail_Server2.log
Both will run two seperate screens, I would refer to screen --help so you can adjust it to how you want both screens to work on your terminal.
screento create two different sessions? You should be able to use tail on both screens? Also,tmuxcan do the job as well if you have it installed. – ryekayo Aug 07 '14 at 15:25