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