You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using this plugin, me and my team discovered that a last batch of events is not published.
We retrieve data using JDBC plugin, process the data with some json filters and output jsons to Pub/Sub using this plugin.
What happens?
It looks like when a pipelines finishes, Logstash triggers a shutdown phase but that is not communicated to the plugin to send remaining events.
How to fix?
The fix I implemented was to overwrite this plugin and add a method in the main class:
defclose@logger.info("Received shutdown command. Sending all outstanding messages!")stopend
The original stop method of the plugin is not triggered by Logstash but the close is!
I hope it helps if anyone else has this issue.
The text was updated successfully, but these errors were encountered:
Using Logstash 7.1.1
While using this plugin, me and my team discovered that a last batch of events is not published.
We retrieve data using JDBC plugin, process the data with some json filters and output jsons to Pub/Sub using this plugin.
What happens?
It looks like when a pipelines finishes, Logstash triggers a shutdown phase but that is not communicated to the plugin to send remaining events.
How to fix?
The fix I implemented was to overwrite this plugin and add a method in the main class:
The original
stop
method of the plugin is not triggered by Logstash but theclose
is!I hope it helps if anyone else has this issue.
The text was updated successfully, but these errors were encountered: