After seeing the operation of apachetop, I suggest you look now at another program in the same category.
GoAccess, a utility analysis of log real-time web servers as well.
GoAccess has a major drawback, it requires the glib2 library in a later version to 2.16.0. Its installation is very difficult on distributions that are not recent, such as Red Hat or CentOS 5.5. A method of achieving this is still explained in the bottom of the FAQ project at your own risk.
If you have a recent system, here’s how to implement it. Initially, we will install the dependencies like this for a Debian-based distribution:
sudo apt-get install libncurses5-dev libglib2.0-dev libgeoip-dev
Or this one for a RPM based distribution:
yum install glib2-devel ncurses-devel GeoIP-devel
then download the source from the official site and run the following commands:
tar zxvf goaccess-*.tar.gz
or for debian based distributions :
deb http://ftp.de.debian.org/debian sid main
#apt-get install goaccess
To use GoAccess, use this command indicates that the transition path of the log file from the server:
goaccess -f /var/log/httpd/access_log
goaccess -f /var/log/apache2/access_log
Then use the arrow keys on your keyboard up and down, to view all statistics.