Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Install GoAccess Log Analysis tool on Rocky Linux 9

Rumi, January 18, 2025November 8, 2025

Perform a system update

Before installing any packages on the CentOS server instance, it is recommended to update the system. Log in using the sudo user and run the following commands to update the system.

sudo yum -y install epel-release
sudo yum -y update
sudo shutdown -r now

Once the system has finished rebooting, log in again as the sudo user and proceed to the next step.

Install dependencies

GoAccess is written in the C programming language. Hence, the only required dependency is the ncurses library and gcc. To install the ncurses and gcc, run:

sudo yum -y install ncurses-devel gcc

Importing the Remi PHP Repository for Rocky Linux 9

To kick things off, we must activate the CRB. This is achieved through the following command:

sudo dnf config-manager --set-enabled crb

Having activated the Code Ready Builder (CRB), it’s time to install both versions of the Extra Packages for Enterprise Linux (EPEL) repository. Let’s do that with this command:

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm

With EPEL installed, we can now add the Remi repository for Enterprise Linux 9 to our system by executing the following command:

sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y

Install dependencies (tokyocabinet)

dnf --enablerepo=crb install tokyocabinet-devel

Install dependencies (GeoIP)

dnf --enablerepo=remi install GeoIP-devel

Install GoAccess.

It is available in the default CentOS repositories. Install it using the following command:

sudo dnf install goaccess -y

After the installation, you can check the version of GoAccess to ensure it was successfully installed:

goaccess --version

Using GoAccess

GoAccess is a web log analyzer. If you do not have a web server running, install the Apache web server.

sudo yum -y install httpd

Start and enable the web server to run at boot time.

sudo systemctl start httpd
sudo systemctl enable httpd

Allow the required HTTP port through the system firewall.

sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --reload

Now you can access the web server using http://Vultr_Server_IP. Upon accessing the web page, Apache will add some log entries in the default access_log file. The path to the log file on CentOS 7 is /var/log/httpd/access_log.

To analyze the log using GoAccess from a terminal, type:

sudo goaccess /var/log/httpd/access_log --log-format=COMBINED

The program will show you the generated report after analyzing the log file. An example report looks like the one shown below.

Dashboard - Overall Analyzed Requests (29/Jun/2017 - 29/Jun/2017) [Active Panel: Visitors]

Total Requests 16 Unique Visitors 1 Unique Files 1 Referrers 0
Valid Requests 16 Init. Proc. Time 0s Static Files 4 Log Size 3.92 KiB
Failed Requests 0 Excl. IP Hits 0 Unique 404 6 Bandwidth 41.82 KiB
Log Source /var/log/httpd/access_log

> 1 - Unique visitors per day - Including spiders Total: 1/1

Hits h% Vis. v% Bandwidth Data
---- ------- ---- ------- ----------- ----
16 100.00% 1 100.00% 41.82 KiB 29/Jun/2017 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

2 - Requested Files (URLs) Total: 1/1
Hits h% Vis. v% Bandwidth Mtd Proto Data
---- ------- ---- ----- ----------- --- -------- ----
2 100.00% 0 0.00% 9.56 KiB GET HTTP/1.1 /

3 - Static Requests Total: 4/4

Hits h% Vis. v% Bandwidth Mtd Proto Data
---- ------ ---- ------ ----------- --- -------- ----
[?] Help [Enter] Exp. Panel 0 - Thu Jun 29 10:20:31 2017 [Q]uit GoAccess 1.2

To generate an HTML report, type:

sudo goaccess /var/log/httpd/access_log --log-format=COMBINED -a -o /var/www/html/report.html

Open your web browser and navigate to the URL http://Server_IP/report.html using your favorite web browser. The browser will show you many types of statistics using interactive graphs.

Ref:
https://linuxcapable.com/how-to-install-remi-rpm-on-rocky-linux/
https://rockylinux.pkgs.org/9/rockylinux-crb-x86_64/tokyocabinet-devel-1.4.48-19.el9.x86_64.rpm.html
https://rhel.pkgs.org/9/remi-x86_64/GeoIP-devel-1.6.12-9.el9.remi.x86_64.rpm.html
https://docs.vultr.com/how-to-install-goaccess-on-centos-7
https://reintech.io/blog/install-use-goaccess-real-time-web-log-analysis-centos-9
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-goaccess-web-log-analyzer-on-ubuntu-20-04
https://github.com/allinurl/goaccess/issues/625

Administrations Configurations (Linux) goaccessRockyRocky 8Rocky 9

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx openvpn pfsense php Postfix Proxmox RDP Softether SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin Windows 10 XCP-NG zimbra

Topics

Recent Posts

  • Youtube MP3 Downloader Script using AI February 14, 2026
  • Install Softether VPN and create a Destination NAT (D-NAT) Rule to access the private Client VPN Node on a Debian 12 OS February 14, 2026
  • Deploying Pulse Monitoring for Proxmox Cluster Ecosystem February 13, 2026
  • Technitium DNS Web UI Configuration for Primary-Secondary Name Servers February 12, 2026
  • Technitium DNS with Primary-Slave Installation on Debian February 12, 2026
  • Install Docker and Docker Compose in Debian 12 February 5, 2026
  • Install GUI on Debian 12 using CLI February 4, 2026
  • Configuring Multiple PHP Versions on Virtualmin January 30, 2026
  • Deploy a Container TIG (Telegraf, InfluxDB and Grafana) Stack January 24, 2026
  • Resetting password of another Linux by mounting disk December 15, 2025

Archives

Top Posts & Pages

  • Youtube MP3 Downloader Script using AI
©2026 Bots! | WordPress Theme by SuperbThemes