Skip to content

fix database manager with multiple pipelines and expiry action#181

Merged
kaisecheng merged 24 commits intologstash-plugins:masterfrom
kaisecheng:geoip_multiple_pipelines
Jun 15, 2021
Merged

fix database manager with multiple pipelines and expiry action#181
kaisecheng merged 24 commits intologstash-plugins:masterfrom
kaisecheng:geoip_multiple_pipelines

Conversation

@kaisecheng
Copy link
Copy Markdown
Contributor

@kaisecheng kaisecheng commented Apr 29, 2021

This PR goes together with another Logstash PR elastic/logstash#12862

This PR does two things

  • The geoip DatabaseManager in core is highly coupling to geoip plugin. Since the class change to a singleton instance, this plugin needs to update corresponded part.
  • Database expiry action has changed. Instead of stopping the pipeline, the plugin fails itself by adding a tag _geoip_expired_database and bypass database lookup.

Fixed: elastic/logstash#12856

to prevent multiple download
@kaisecheng kaisecheng changed the title fix database manager with multiple pipelines fix database manager with multiple pipelines and expiry action May 5, 2021
@kaisecheng kaisecheng marked this pull request as ready for review May 5, 2021 22:09
kaisecheng added 3 commits May 6, 2021 12:15
…geoip into geoip_multiple_pipelines

� Conflicts:
�	CHANGELOG.md
�	lib/logstash/filters/geoip.rb
�	logstash-filter-geoip.gemspec
…geoip into geoip_multiple_pipelines

# Conflicts:
#	CHANGELOG.md
#	logstash-filter-geoip.gemspec
Copy link
Copy Markdown
Member

@jsvd jsvd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a minor change to docs, as we don't yet mention anywhere the tagging of events in the case of an expired database.

@kaisecheng kaisecheng merged commit b88155d into logstash-plugins:master Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GeoIP database manager could fail in multiple pipelines

3 participants