Goaccess recipes
Goaccess is a raw log server analyzer. I’ve installed it on macOS using brew install goaccess.
To generate useful website analytics, the incantation below:
goaccess mylogfile \
-o report.html \
--log-format=COMBINED \
--ignore-crawlers \
--unknowns-as-crawlers \
--anonymize-ip \
--anonymize-level=2 \
--geoip-database=dbip-country-lite-2026-04.mmdb \
--static-file=.webp \
--static-file=.php \
--all-static-files
The flags help as follows:
--ignore-crawlersand--unknowns-as-crawlersexcludes known crawlers, and assumes unknown user agents to be crawlers;--anonymize-ipin combination with--anonymize-level=2replaces the last 16 bits of the IP addresses with zeros;--geop-databasepoints to an MMDB database, in this case DBIP’s IP to Country Lite;--static-filedefines more file extensions to treat as static, and--all-static-filesincludes static files that have query parameters in their URL.