Remix.run Logo
QuantumNomad_ 3 days ago

> If I remember correctly, it was kind of a burden to get deployed

It probably depends a lot on your setup. I’ve been running GoAccess from a crontab on some of my sites for a couple of years. It was a bit fiddly to get the correct combination of Nginx logs, forwarding real IP from HAProxy, and getting it to show with GeoIP in generated GoAccess HTML reports, but once I got it working satisfactorily it’s been working well since. The only part that is missing in my GoAccess reports is the ASN of the clients. I don’t remember if that’s because ASN mappings are a paid GeoIP database feature or if I simply ignored that part or what, but I do have countries and municipalities correct (I can tell because for example on one of the sites the most frequent visitor is a client machine that I own, and it shows up accordingly prominently with the country and municipality where that client machine is located) and that’s the main thing I wanted to be able to see when setting up GoAccess to use a GeoIP database file.

I serve the generated GoAccess HTML reports from Nginx itself with a simple .htaccess file providing username and hashed password and Nginx using that file with HTTP Basic Auth. Since the only person that looks at those reports is myself, and the sites use TLS, I don’t need anything more advanced than HTTP Basic Auth to protect access to the GoAccess HTML reports.

And I suppose that in today’s world an LLM would probably be able to do most of the config writing for a setup such as mine for all of the above parts.

aleks_me2 3 days ago | parent [-]

The question "which ASN are the clients coming from?" was exactly the reason I revived AWFFull — the new version adds an ASN table based on the DB-IP ASN Lite database :-)

To your point about it maybe being a paid feature: the DB-IP Lite files are free (CC-BY), so the ASN part doesn't have to cost anything — it's just not what the MaxMind-oriented tooling usually reaches for.

QuantumNomad_ 3 days ago | parent [-]

Sweet! After reading your reply I had a look and downloaded the DB-IP ASN Lite db also. From before I had the DB-IP City Lite db. And then making GoAccess use the ASN db was just a matter of adding the same --geoip-database argument again to GoAccess that I already use with the city db file path, but with the ASN db file path. As per the manual https://goaccess.io/man which even includes exactly using both city and ASN db together as an example :D

This is why it’s so great to share experiences on HN :) I wasn’t really planning on looking further into how to set up the ASN part but then after your comment I basically had no choice other than to have a look to see if the ASN Lite db file was the missing part and it was :D Thank you :)