From c683d8e3c43f2bf24b044ef7871156191518c9ca Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Fri, 2 Aug 2024 15:12:04 +0200 Subject: [PATCH] out_opensearch: fixed wrong payload buffer usage for traces Signed-off-by: Leonardo Alminana --- plugins/out_opensearch/opensearch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/out_opensearch/opensearch.c b/plugins/out_opensearch/opensearch.c index d7eaed53c31..23dfdaabc6a 100644 --- a/plugins/out_opensearch/opensearch.c +++ b/plugins/out_opensearch/opensearch.c @@ -884,6 +884,9 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk, pack = flb_msgpack_raw_to_json_sds(event_chunk->data, event_chunk->size); if (pack) { ret = 0; + + out_buf = (void *) pack; + out_size = cfl_sds_len(pack); } else { ret = -1;