Grimoire-Command.es

GNU+Linux command memo

Website analytics via server logs with goaccess

Analyse du trafic d’un site web depuis le journal du server via goaccess

goaccess /var/log/apache2/access.log (1)
tail -f /var/log/apache2/access.log | goaccess - (2)
zcat /var/log/apache2/*.gz | goaccess (3)
1 Static report in console. GoAccess can also generate HTML reports (or JSON, CSV…) : apt install goaccess man goaccess
2 Live analysis (console or HTML)
3 Monthly analysis from compressed and logrotated logs