Skip to content

Commit

Permalink
Fix disabling CloudWatch Logs auto_create_group
Browse files Browse the repository at this point in the history
Fix for fluent#8949 

Signed-off-by: Sjoerd Smink <[email protected]>
  • Loading branch information
sjoerdsmink authored Jul 19, 2024
1 parent 574a69a commit 63b73ed
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 63b73ed

Please sign in to comment.