From d1b04dc96506a9c9b863b5251cf61d08a23d3dcf Mon Sep 17 00:00:00 2001 From: Ardavast Dayleryan Date: Wed, 5 Jun 2024 18:57:21 +0300 Subject: [PATCH] in_systemd: Move one record back after skipping to the end --- plugins/in_systemd/systemd_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/in_systemd/systemd_config.c b/plugins/in_systemd/systemd_config.c index e21610f3e93..939198289f8 100644 --- a/plugins/in_systemd/systemd_config.c +++ b/plugins/in_systemd/systemd_config.c @@ -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