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.
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
I don't know how much work it is to install/configure, but I've heard a few good things about splunk. YMMV.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With