Closed Provyzor closed 1 year ago
Just pass the mmdb file as an option, e.g.,
goaccess access.log --geoip-database=/path/GeoLite2-ASN.mmdb -o report.html --log-format=COMBINED
You can find the db in multiple places, e.g.,
https://db-ip.com/db/download/ip-to-asn-lite https://github.com/P3TERX/GeoLite.mmdb
And if I use --geoip-database option in goaccess.conf? I point to GeoLite2-City.mmdb there.
You can use multiple databases as of v1.7. Just point to different files. e.g.,
goaccess access.log --geoip-database=/path/GeoLite2-ASN.mmdb --geoip-database=/path/GeoLite2-City.mmdb -o report.html --log-format=COMBINED
Thanks a lot!
Added on more record with ASN-database to goaccess.conf, nothing changed:
geoip-database /usr/local/share/GeoIP/GeoLite2-City.mmdb geoip-database /usr/local/share/GeoIP/GeoLite2-ASN
is that an mmdb file?
Wow! It works!!
Sorry, the file extension missed in config file!
Respect and uvazhuha (something like respect in Russian) to you! 👍
@Provyzor glad that worked! thanks for the kind words as well :)
Closing this, feel free to reopen it if needed.
Hi!
ASN Unknown. How to configure ASN database location?