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