aws / amazon-cloudwatch-logs-for-fluent-bit

A Fluent Bit output plugin for CloudWatch Logs
Apache License 2.0
173 stars 49 forks source link

Log Group retention policy update not working #254

Open transadm312 opened 2 years ago

transadm312 commented 2 years ago

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

zhonghui12 commented 2 years ago

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

amosaini commented 2 years ago

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
abhijit-gaonkar commented 1 year ago

@zhonghui12 was this issue fixed?