Bloggings

Home

Using Goaccess to view web stats

2025-04-03

Using Goaccess locally

I have goaccess installed on my laptop to view the web stats on a vps

First install Goaccess on Arch Linux

sudo pacman -S goaccess

View the remote stats (adjust the path for your actual log location)

ssh USER@SERVER 'zcat -f /var/log/nginx/access.log*' | goaccess -a --log-format=COMBINED

I've added an alias in my .bashrc :

alias stats="ssh USER@SERVER 'zcat -f /var/log/nginx/access.log*' | goaccess -a --log-format=COMBINED"

 


A minimalist blog by Philip Wittamore