Skip to content
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

Configure CloudWatch Log Group Retention #953

Open
woodhull opened this issue Oct 22, 2021 · 1 comment
Open

Configure CloudWatch Log Group Retention #953

woodhull opened this issue Oct 22, 2021 · 1 comment

Comments

@woodhull
Copy link

The stack seems to create a bunch of log groups in Cloudwatch logs with no retention set, meaning the logs will never expire.

Over time, this will generate a Cloudwatch storage cost that will increase over time. Customers should be able to configure the right retention time for their context, with a sensible default defined in the stack.

@keithduncan
Copy link
Contributor

It doesn’t look like Log Group retention can be configured in the CloudWatch Agent config 🤔

It wouldn’t be a backwards compatible change to start managing these existing Log Groups in the CloudFormation template either.

I’m not sure what the best strategy to set this configuration would be. There could be a Lambda based custom resource that sets the retention on the groups?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants