Skip to content

Commit

Permalink
in_systemd: Move one record back after skipping to the end
Browse files Browse the repository at this point in the history
Signed-off-by: Ardavast Dayleryan <[email protected]>
  • Loading branch information
ardavast authored and edsiper committed Jun 6, 2024
1 parent 4a0591a commit 92ba3b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_systemd/systemd_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ struct flb_systemd_config *flb_systemd_config_create(struct flb_input_instance *

if (ctx->read_from_tail == FLB_TRUE) {
sd_journal_seek_tail(ctx->j);
sd_journal_previous(ctx->j);
/*
* Skip up to 350 records until the end of journal is found.
* Workaround for bug https://github.com/systemd/systemd/issues/9934
Expand Down

0 comments on commit 92ba3b6

Please sign in to comment.