From 63b73ed63b11240824c8316297f807405655f57d Mon Sep 17 00:00:00 2001 From: Sjoerd Smink Date: Fri, 19 Jul 2024 16:30:39 +0200 Subject: [PATCH] Fix disabling CloudWatch Logs auto_create_group Fix for #8949 Signed-off-by: Sjoerd Smink --- 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 5de71633016..c5e808ae141 100644 --- a/plugins/out_cloudwatch_logs/cloudwatch_logs.c +++ b/plugins/out_cloudwatch_logs/cloudwatch_logs.c @@ -53,8 +53,7 @@ static struct flb_aws_header content_type_header = { static int validate_log_group_class(struct flb_cloudwatch *ctx) { if (ctx->create_group == FLB_FALSE) { - flb_plg_error(ctx->ins, "Configuring log_group_class requires `auto_create_group On`."); - return -1; + return 0; } if (ctx->log_group_class == NULL || strlen(ctx->log_group_class) == 0) {