-
Notifications
You must be signed in to change notification settings - Fork 81
Description
For all general issues, please provide the following details for fast resolution:
today there is a need of restarting logstash for reloading the Maxmind geoip databases
Referring to this comment:
#63 (comment)
I would like to raise this now as it would be good to have the possibility to reload the database without restarting logstash, and with that you can update the database and logstash would be quite immediately aware of it.
From implementation perspective there are existing mechanisms already that can be taken as a blueprint from the translate plugin:
https://github.com/logstash-plugins/logstash-filter-translate/blob/5cbb57c9a34865856de9ead577c19d42c4b75ade/lib/logstash/filters/dictionary/file.rb#L119
reload_dictionary
https://github.com/logstash-plugins/logstash-filter-translate/blob/5cbb57c9a34865856de9ead577c19d42c4b75ade/lib/logstash/filters/dictionary/file.rb#L128
needs_refresh
and then offer the 2 configurable settings
refresh_interval
and if needed refresh_behaviour
www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html