Monitoring Log files in Realtime on Unix
By Pete Freitag
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.
Monitoring Log files in Realtime on Unix was first published on December 06, 2006.
If you like reading about logs, unix, commands, or tail then you might also like:
Weekly Security Advisories Email
Advisory Week is a new weekly email containing security advisories published by major software vendors (Adobe, Apple, Microsoft, etc).