Installing GoAccess
Outcome: a goaccess program on your
machine that states its version and its
build options — and an honest account of
where the lab's copy came from.
The package install
The lab installed GoAccess from its operating system's packages (Ubuntu 24.04), unmodified:
sudo apt-get install goaccess
That brought in exactly one package,
goaccess 1:1.8.1-1build3 (396 kB). The
project also publishes its own
installation routes — packages for other
systems and a source build — on its
website and in its repository; the lab
used the distribution package because it
is the route most readers on a Debian or
Ubuntu server will take, and because a
guide should test what its readers will
actually run (transcript
t00-install-and-versions.txt).
The check
goaccess --version
GoAccess - 1.8.1.
For more details visit: https://goaccess.io/
Copyright (C) 2009-2023 by Gerardo Orellana
Build configure arguments:
--enable-utf8
--enable-geoip=mmdb
--with-openssl
The build arguments are worth reading, because they decide what your copy can do:
--enable-utf8— the terminal dashboard draws its panels with proper line characters.--enable-geoip=mmdb— this copy can look addresses up in a GeoIP country database in MaxMind's format. It does not ship one: without a.mmdbfile of your own, the geography panels stay empty. The lab had no database and did not download one (it normally requires a provider account), so GeoIP is documented-only in this guide.--with-openssl— the real-time mode's WebSocket server can speak TLS (chapter 10).
A copy built differently — from source with other flags — may lack a feature this guide names. The version check is how you find out which copy you hold.
The config file you already have
The package also installs a system-wide
default configuration at
/etc/goaccess/goaccess.conf.
GoAccess reads it on every run unless
you point it elsewhere with
--config-file (or -p). Most of its
lines are commented examples. Know it
exists: when a setting seems to apply
itself, that file is the first suspect,
and chapter 5 shows how to keep your own
settings in a file of yours instead.
What you need beside it
Nothing, for most of this guide: a log
file and GoAccess are the whole kit. The
lab also used the web server that wrote
the log (nginx 1.24, already present on
the build machine) and curl to make
traffic (goaccess-lab/make-traffic.sh),
but for your own server the log already
exists — chapters 4 onward only need the
analyser. The full option list is in the
lab's transcript t01-help.txt; the
guide teaches the options it uses and
names the rest honestly in chapter 12.