-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable setting retention policies for created log groups #50
Comments
I think this makes sense 👍 |
@drboyer Hmm there's a slight chance we might not be able to distinguish between log groups created by us v.s. by others. The Are you still up for it? |
More likely than the above scenario is:
I ran into this once or twice while developing a patch for this issue. |
This is currenly not working yet. The README.me file states that the log group retention policy can be controlled by the setting "cloudWatch.logRetentionDays", if you do set that setting it has no effect whatsoever and the resulting log group retention policy is set to "Never Expire". Would be great to fix this. |
@luisamador Can you send us more details- the code will always set the retention: https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit/blob/mainline/cloudwatch/cloudwatch.go#L585 The retention is provided with the
|
You must make sure to set |
@PettitWesley sorry I shouldn't have posted here I think as my issue has to do more with the Helm chart version. See my issue here with an example to replicate my issue: aws/eks-charts#436 |
seeing this issue here -> aws/eks-charts#436 (comment) |
Currently, log groups created by this plugin do not have a retention period set, meaning logs forwarded using this plugin will never expire from CloudWatch. But you may want to set a lower retention period for cost-saving or compliance reasons. I'm proposing adding a new configuration option named like
retentionInDays
that would be applied to log groups created ifauto_create_group
is set totrue
.I may try to open a PR about this myself - I think I understand where to make the change. But wanted to open a feature request ticket first to facilitate any discussion.
One potential point of discussion - if we add this setting, should we only apply it to created log groups? Or should it be applied to the log group this plugin sends to regardless? I proposed only created groups to avoid this plugin making changes to existing infrastructure.
The text was updated successfully, but these errors were encountered: