Skip to content

Commit a2804ec

Browse files
cosmo0920edsiper
andcommitted
in_tail: Handle truncations due to exceeded limits
Signed-off-by: Hiroshi Hatake <[email protected]> Co-authored-by: Eduardo Silva <[email protected]>
1 parent c5e5b51 commit a2804ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/in_tail/tail_file.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,9 @@ static int process_content(struct flb_tail_file *file, size_t *bytes)
563563
&out_time,
564564
line,
565565
line_len);
566+
if (ret == FLB_MULTILINE_TRUNCATED) {
567+
flb_plg_warn(ctx->ins, "multiline message truncated due to buffer limit");
568+
}
566569
goto go_next;
567570
}
568571
else if (ctx->docker_mode) {

0 commit comments

Comments
 (0)