Skip to content

Commit

Permalink
in_tail: flush multiline before exit on EOF
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Mar 13, 2024
1 parent 77e50a2 commit 71d243a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/in_tail/tail.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ static int in_tail_collect_static(struct flb_input_instance *ins,
flb_plg_info(ctx->ins, "inode=%"PRIu64" file=%s ended, stop",
file->inode, file->name);
if (ctx->files_static_count == 1) {
#ifdef FLB_HAVE_PARSER
if (ctx->multiline) {
flb_tail_mult_flush(file, ctx);
}
#endif
flb_engine_exit(config);
}
}
Expand Down

0 comments on commit 71d243a

Please sign in to comment.