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.
If you like reading about logs, unix, commands, or tail then you might also like:
Want Security Advisories via Email?
Advisory Week is a new weekly email containing security advisories published by major software vendors (Adobe, Apple, Microsoft, etc).