Skip to content

Commit c683d8e

Browse files
Leonardo Alminanaedsiper
authored andcommitted
out_opensearch: fixed wrong payload buffer usage for traces
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 30b6522 commit c683d8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/out_opensearch/opensearch.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,9 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk,
884884
pack = flb_msgpack_raw_to_json_sds(event_chunk->data, event_chunk->size);
885885
if (pack) {
886886
ret = 0;
887+
888+
out_buf = (void *) pack;
889+
out_size = cfl_sds_len(pack);
887890
}
888891
else {
889892
ret = -1;

0 commit comments

Comments
 (0)