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
You might also like:
- The 15 Essential UNIX commands - July 29, 2005
- A good and free log analysis tool - awstats - August 27, 2003