From 0421c340f40edce90466f0ac18d4a2cf100c6470 Mon Sep 17 00:00:00 2001 From: Brandon Johnson Date: Thu, 20 Oct 2022 02:38:17 -0400 Subject: [PATCH] in_tail: Fix multiline + Path_Key emitting empty logs Fix the incorrect buffer being appended to if both multiline and Path_Key are specified, leading to the records being ignored Signed-off-by: Brandon Johnson --- plugins/in_tail/tail_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/in_tail/tail_file.c b/plugins/in_tail/tail_file.c index 93b4eefaf46..f351f169d89 100644 --- a/plugins/in_tail/tail_file.c +++ b/plugins/in_tail/tail_file.c @@ -843,8 +843,8 @@ static int ml_flush_callback(struct flb_ml_parser *parser, else { /* adjust the records in a new buffer */ record_append_custom_keys(file, - file->mult_sbuf.data, - file->mult_sbuf.size, + buf_data, + buf_size, &mult_buf, &mult_size); flb_input_chunk_append_raw(ctx->ins,