From 360670a4d953cd570c32b2391c800eec8f8c8fc3 Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Tue, 1 Mar 2022 18:12:20 -0800 Subject: [PATCH] out_cloudwatch_logs: fix build issue from #4826 Signed-off-by: Wesley Pettit --- plugins/out_cloudwatch_logs/cloudwatch_logs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/out_cloudwatch_logs/cloudwatch_logs.c b/plugins/out_cloudwatch_logs/cloudwatch_logs.c index cdaa8a63d07..e7e99ec416d 100644 --- a/plugins/out_cloudwatch_logs/cloudwatch_logs.c +++ b/plugins/out_cloudwatch_logs/cloudwatch_logs.c @@ -390,8 +390,7 @@ static void cb_cloudwatch_flush(const void *data, size_t bytes, ctx->buf->put_events_calls = 0; - stream = get_log_stream(ctx, - event_chunk->tag, flb_sds_len(event_chunk->tag)); + stream = get_log_stream(ctx, tag, tag_len); if (!stream) { FLB_OUTPUT_RETURN(FLB_RETRY); }