I started self-hosting roughly six months ago. Since then, two hard drives have died (the last one being just two days ago!) and I've learned a lot about system administration. There's so much to learn that I still feel like I know nothing at all and relatively speaking, it's probably true.
I've spent time looking at Matomo, Fathom, SimpleAnalytics and whatever else to replace the intrusiveness of Google Analytics. I think the ease of Cloudflare's analytics tab is what stopped me from making a final decision on any one product.
Last night, I found a tool that solves this problem with grace, ease, a sweet terminal interface and real-time streams to the browser. It's called goaccess and so far, I think it's really good.
alias stats="zcat -f /var/log/nginx/access.*.gz | goaccess /var/log/nginx/access.log"
You can configure
/etc/goaccess.conf to read
/var/log/nginx/access.log when it starts, so my alias actually omits the path at the end and simply pipes to
Check it out!