Skip to content

Commit

Permalink
out_cloudwatch_logs: fix disabling of auto_create_group config option
Browse files Browse the repository at this point in the history
Fix for #8949

Signed-off-by: Sjoerd Smink <[email protected]>
  • Loading branch information
sjoerdsmink authored and edsiper committed Aug 14, 2024
1 parent 945d333 commit bda73d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/out_cloudwatch_logs/cloudwatch_logs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bda73d8

Please sign in to comment.