fluent-plugins-nursery / fluent-plugin-systemd

This is a fluentd input plugin. It reads logs from the systemd journal.
Apache License 2.0
153 stars 43 forks source link

Shutdown cleanly #89

Closed errm closed 3 years ago

errm commented 3 years ago

Fixes #46

If there are still entries to be read from the journal when fluend shuts down we will continue emitting records even after the router has been removed.

This change stops reading after the shutdown hook gets called.

It also has the nice side effect that we stop updating pos storage, so we shouldn't miss any entries when / if we start up again.