Skip to content

Commit

Permalink
in_tail: Fix multiline + Path_Key emitting empty logs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
BinaryFissionGames committed Oct 20, 2022
1 parent 1969007 commit 487eaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/in_tail/tail_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,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);

ml_stream_buffer_append(file, mult_buf, mult_size);
Expand Down

0 comments on commit 487eaf9

Please sign in to comment.