From bda73d88500166a2b8cce95aa0bad9316a9639b9 Mon Sep 17 00:00:00 2001 From: Sjoerd Smink Date: Fri, 19 Jul 2024 16:30:39 +0200 Subject: [PATCH] out_cloudwatch_logs: fix disabling of auto_create_group config option 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) {