Monitor Apache site traffic with Apachetop
apachetop is a command line tool like top, that shows traffic on a web site. It used apache access log to show th stats. This will be useful to monitor a web sites traffic in real time.
1 2 3 4 5 6 7 |
cd /usr/local/src wget https://github.com/HostOnNet/apachetop/archive/master.zip unzip master.zip cd apachetop-master ./configure --with-logfile=/var/log/httpd/access_log make make install |
If you need to set path to apache log file, configure with
1 |
./configure --with-logfile=/path/to/apache/log/file.log |
On CentOS
1 |
yum install apachetop |
On Ubuntu/Debian
1 |
apt install apachetop |
Running apachetop with custom log file location
1 |
apachetop -f /path/to/apache/log/file.log |