Graylog2 / graylog-plugin-map-widget

[DEPRECATED] Map widget for Graylog
https://www.graylog.org/
GNU General Public License v3.0
6 stars 12 forks source link

Support updating GeoIP databases without restart #35

Open joschi opened 7 years ago

joschi commented 7 years ago

From @emsearcy on February 25, 2017 3:6

Summary: the Geo-Location Processor stops appending _geolocation when the City database is updated/replaced.

Expected Behavior

Graylog continues appending _geolocation after a new City database is downloaded, using the updated GeoIP database values, without restarting graylog-server.

Current Behavior

After a new City database is downloaded, matching _geolocation fields are no longer added to IP address fields, until graylog-server is restarted.

Steps to Reproduce

The free GeoIP databases are updated once the first Tuesday of each month. Run the following to check for updates and replace the current mmdb when an update is available.

cd /usr/share/GeoIP # or other plugin-configured db location wget -q -t1 --timestamping http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz test GeoLite2-City.mmdb.gz -nt GeoLite2-City.mmdb && gunzip -c GeoLite2-City.mmdb.gz > GeoLite2-City.mmdb

When a new gz is downloaded, and the mmdb file has been overwritten by the update, check incoming log entries to see if _geolocation is still present on IP fields.

Your Environment

Copied from original issue: Graylog2/graylog2-server#3546

mlazzarotto commented 1 year ago

Does a workaround exist? I would like to periodically update the GeoIP DB.