Monitoring Log files in Realtime on Unix
Here's a handy trick for monitoring log files on unix, linux or mac's.
SSH on to your server then type:
tail -f /var/log/httpd/access_log
The above command will show you the last few lines of the log file, this is no suprise if your fimiliar with
tail command. However the
-f option will print to your console any new lines added to the log file in realtime. So you can get a live view of the traffic on your server.
Like this? Follow me ↯Tweet Follow @pfreitag
Monitoring Log files in Realtime on Unix was first published on December 06, 2006.