After seeing the function of Apachetop, today I propose another similar software called GoAccess, which is a utility that allows to analyze in real time log files of web servers (Apache).
- Debian-Based Distribution
Before installing GoAccess, let's first install some required packages. Launch the terminal and run this command:
sudo apt-get install libncurses5-dev libglib2.0-dev libgeoip-dev
- RPM-Based Distribution
For an RMP-based distribution, you need to install first some required packages. Open the terminal window and run this command:
yum install glib2-devel ncurses-devel GeoIP-devel
Next download the sources from the official website, then run these commands:
tar zxvf goaccess-*.tar.gz
To use GoAccess, run this command that indicates the path to the server log file:
goaccess -f /var/log/httpd/access_log
Use then keyboard arrow keys (UP/Down/Left/Right) to monitor web server traffic in real time.