Re:GoAccess – Visual Web Log Analyzer
by noxvilleza on Sunday August 01, 2021 @09:35AM
(#28026142)
What's quite nice with the HTML output view is that it stores stats even if the underlying log files are rotated/deleted - however if the goaccess process ends (like if your server needs to restart) you lose all the historic context.
[ Parent
| on HN ]
Re:GoAccess – Visual Web Log Analyzer
by elboulangero on Sunday August 01, 2021 @10:01AM
(#28026287)
I run goaccess once a day to analyze log files. There's an option to store the result in goaccess database. So nothing is never lost and I accumulate stats for as long as I want.
I detailed that in a (lengthy) blog post if you're interested: https://arnaudr.io/2020/08/10/goaccess-14-a-detailed-tutoria...
I love when something I had once been looking for, but seemed so specific I didn't know how to search for it, drops right into my lap. Thank you for this, it is exactly what I've been looking for.
I can confirm that goaccess databases works great for incrementally regenerating these HTML reports.
We currently pipe all logs from all our ingress-nginx LBs every 15 minutes (and grep by virtual host) to goaccess and thus update its reports periodically. Each month, all reports get archived so we can start with a fresh report again.
Semi live and super useful without having to use 3rd party services like Google Analytics. The HTML report is self-contained (single file) and thus can easily be shared (or just statically hosted).