Tailing two log files

Solution 1:

Yes, tail outputs lines appended to all the files given on the command line:

tail -F sqlLogs.log perflogs.log | egrep '(sql-time|exec-time)'

Solution 2:

Have a look at MultiTail. It's your friend.

You can have the multiple log tails in

 - different windows, a al vim's 'split'
 - or have it merge the two (or N) streams into one view and
 - you can filter steams by regex and, if you like,
 - it will 'tee' the output to a file

http://www.vanheusden.com/multitail/

On Ubuntu 10.04: sudo apt-get install multitail