Friday, January 02, 2009

Watching Remote Logs

We sometimes need to monitor log files on remote servers.

A simple method, that doesn't require us to log in to the remote host, is to run GNU tail command over the network using ssh.

Example, if we want to monitor the file /var/log/sample.log on the remote host hostname.

$ ssh hostname tail -retry -follow=name /var/log/sample.log

1 comment:

ralph usdan said...

(sr)srware iron is i think the linux version.At least its chrome withou google affiliation. found at cnet