Feature request/recipe suggestion - up to date geoip data

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ananke
Posts: 21
Joined: Fri Jun 03, 2016 3:14 pm

Feature request/recipe suggestion - up to date geoip data

Post by ananke »

One of the selling points for us was the '5 minute dashboard' aka 'Better Apache Dashboard' by Scott Wilkerson', and the ease of applying geoip data to incoming logs.

Upon closer inspection it seems that logstash-filter-geoip plugin uses a fairly dated set of data from 2013. While that's a safe default, it would be nice to have something more up to date. Perhaps the NLS image could leverage this, or maybe other people would find it useful.


1) install geoip packages:

- CentOS 6.x (used by nagios log server VM)
yum install GeoIP GeoIP-GeoLite-data GeoIP-GeoLite-data-extra

- CentOS 7.x
yum install GeoIP GeoIP-update

2) In your grok filters when 'geoip' function is called, point it to the database managed by the geoip packages:

geoip {
database => "/usr/share/GeoIP/GeoLiteCity.dat"
source => 'some_field'
}
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Feature request/recipe suggestion - up to date geoip dat

Post by rkennedy »

Thanks for the contribution! I created a FR for NLS to use the GeoIP packages, rather then the static file, so that upon updating the package the most recent information is displayed. I also put a note in there that if not that, then an option to specify which DB to use so if you wanted to download a new Maxmind database, and update manually, you could. The ID for it is #8934.
Former Nagios Employee
Locked