amazon-cloudwatch-logs-for-fluent-bit icon indicating copy to clipboard operation
amazon-cloudwatch-logs-for-fluent-bit copied to clipboard

Log Group retention policy update not working

Open transadm312 opened this issue 2 years ago • 3 comments

when creating Log Group for first time retention updated correctly after somedays I updated log retention policy..but retention didn't update in AWS CloudWatch ..

I suspect it didn't reach below line https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit/blob/mainline/cloudwatch/cloudwatch.go#L593 and return from https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit/blob/mainline/cloudwatch/cloudwatch.go#L589

because "Log group already exists" is not printing in log

transadm312 avatar Jun 03 '22 02:06 transadm312

Thanks for your reporting. I think it should still work if you enable the auto_create_group, have you tried it?

zhonghui12 avatar Jun 10 '22 18:06 zhonghui12

yes It is enabled for us. We are also facing the same. The put retention policy is not working when the log group already exist. image

amosaini avatar Jul 11 '22 06:07 amosaini

@zhonghui12 was this issue fixed?

abhijit-gaonkar avatar Jun 07 '23 21:06 abhijit-gaonkar