views:

79

answers:

2

Does anyone know of a good tool that allows you to tail and search through log files that are spread across a cluster of machines. We have multiple web servers and app servers and digging through the logs on each server one by one is a pain.

+1  A: 

You can use the following bash script (if you can ssh to the remote machines and have read access to the log files)

(echo "machine1"; ssh machine1 tail /var/log/messages; echo "machine2"; ssh machine2 tail /var/log/messages;) | less

lothar
+1  A: 

I don't know how much work it is to install/configure, but I've heard a few good things about splunk. YMMV.

Mike Ellery