Quantcast
Channel: PHP-Scripts Blog » Linux
Viewing all articles
Browse latest Browse all 3

Tail -f apache access_log

$
0
0

SSH screenshot showing tail -f stream in action

Here is how to use SSH/Telnet do a search and locate your access_log file. The linux locate command will help:

locate access_log

You might see lots of logs separated by domain names. A common location for these logs are /var/log/apache, so cd your way there:

cd /var/log/apache
/var/log/apache$ tail -f access_log

Now a stream using tail of the file will occur in real time and you can watch and see who is accessing what in near real time.

Reference: Parsing Apache acces log files using PHP


Viewing all articles
Browse latest Browse all 3

Trending Articles