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
@@ -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);
