Goaccess: Problem with Geo Location (Unknown)

Created on 4 Nov 2019  路  7Comments  路  Source: allinurl/goaccess

I am running GoAccess to gather some stats on several reverse proxies handled by Caddy.

To launch GoAccess I have customized a startup script:

#!/bin/sh
### Get GeoIP db
cd /share/Public/goaccess/GeoIP
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
gunzip -f GeoLite2-City.mmdb.gz
### Launch goaccess
goaccess --no-global-config -o /share/Web/goaccess/index.html --real-time-html --config-file=/share/Public/goaccess/goaccess.conf --geoip-database /share/Public/goaccess/GeoIP/GeoLite2-City.mmdb

goaccess.conf is the following:

port 7890
daemonize true
log-format COMMON
real-time-html true
output /share/Web/goaccess/index.html
log-file /share/Public/caddy/accesslogs/goaccess.log
agent-list true
no-query-string true

If I go on goaccess.log, I have the following type of entries:

146.0.177.5 - goaccess [04/Nov/2019:10:44:04 +0100] "GET / HTTP/2.0" 200 116439
192.168.1.1 -  [03/Nov/2019:19:27:10 +0100] "GET / HTTP/2.0" 401 17
212.66.75.12 - goaccess [04/Nov/2019:22:59:46 +0100] "GET /favicon.ico HTTP/2.0" 404 236

Does anyone understand why I only get "Unknown" in the Geo Location tab?

Thanks

dependencies log-processing

All 7 comments

Hi @allinurl ,

Do you have any hint on where to look at or if I need to provide a better explanation of this issue?

Here is a screenshot:

Screenshot_20191115-071038__01

Thanks

Let me look at this from my end and I'll post back.

Hi @allinurl,

Did you manage to have a look at it?

Thank you a bunch!

You will need to build with mmdb support.

--enable-geoip=mmdb

Here's what I get:

2019-11-18-215521_410x162_scrot

Thanks, I will check if this was done it!

That was indeed the issue, now it is solved, thanks!!

Issue solved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ychunc picture ychunc  路  3Comments

canepa picture canepa  路  3Comments

ArunDahiya1 picture ArunDahiya1  路  3Comments

g33kphr33k picture g33kphr33k  路  3Comments

LoanDEV picture LoanDEV  路  3Comments