Updated: 19 November 2026 · Applies to: Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 (GoAccess 1.11)

CentOS 7 is end of life; these steps are for Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9. GoAccess no longer needs to be compiled: it is packaged.

AlmaLinux / Rocky Linux 9

dnf install epel-release
dnf install goaccess          # 1.11 in EPEL 9

Ubuntu / Debian

The distribution package works; for the latest version, use GoAccess's own repository:

wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor -o /usr/share/keyrings/goaccess.gpg
echo "deb [signed-by=/usr/share/keyrings/goaccess.gpg arch=$(dpkg --print-architecture)] https://deb.goaccess.io/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/goaccess.list
apt update && apt install goaccess

Check the version with goaccess --version.

Analyse a log in the terminal

goaccess /var/log/nginx/access.log --log-format=COMBINED
goaccess /var/log/httpd/access_log --log-format=COMBINED     # Apache on AlmaLinux/Rocky
goaccess /var/log/apache2/access.log --log-format=COMBINED   # Apache on Ubuntu/Debian

Use the arrow keys and Enter to open panels (visitors, requested files, 404s, referrers, browsers, status codes); q closes a panel or quits.

Create an HTML report

goaccess /var/log/nginx/access.log --log-format=COMBINED -o /var/www/html/report.html

Add --real-time-html for a report that updates live (it uses a WebSocket on port 7890). Protect the report with a password or keep it outside public folders: it shows visitor IPs.

Older, rotated logs

zcat /var/log/nginx/access.log.*.gz | goaccess --log-format=COMBINED -

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket