-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CloudWatch Log Retention Period #650
Comments
Hello @stack72, thank you for reaching out to us. It would seem if the request succeeds, then could you not wait the specified time? Let me know what concerns you have with this idea |
Hi @xibz My apologies I wasn;t clear here. I mean that when i query the P. |
@stack72, what is it that you are trying to do with the RetentionInDays? I imagine you are looking to check the state of the LogGroup, like |
Thanks for the repo here. I will just check the state of the LogGroup to make sure that it isn't in a pending state. If it doesn't help then I will re-comment Thanks Paul |
@stack72 - Unfortunately, there is no state associated with the LogGroups. I was curious if that was more of what you were trying to do. Sorry if I wasn't clear |
yeah that was what i was trying to achieve. How do I know when a retention period has been added to the LogGroup? It's not an immediate thing |
Okay, I am asking Cloudwatch if there is a way to do this. It seems the SDKs do not allow for this. So, once they get back to me, I'll update you! |
thanks so much for all the help here @xibz :) |
Hi, any thoughts on the issue here? thanks Paul |
Hi @stack72 we are working with the CloudWatch Logs team to get a better understanding of what the expected functionality of this issue is. We'll update this issue once we have more information from the service team. |
Awesome :) Thanks! |
@stack72 - CloudWatch Logs states it happens immediately. Are you doing something that has unexpected output? |
Hi @xibz I am trying to get this working now. If the Cloudwatch Logs say it works as so then I will find the fix on my side. I will close the issue until it has been proven otherwise Thanks for all the work here Paul |
@stack72 - Thank you again for reaching out to us. If you have any issues, please reopen so we can properly get this handled. |
Hi
When using the following code:
The response from the
DescribeLogGroups
doesn't give me the correct value (of 7) for the retention period. I need to call the Describe func a second time to get that value. It obviously takes some time for the retention period to be added to the LogGroup, butPutRetentionPolicy
doesn't return me anything that allows me to wait for the state to be updatedAny suggestions here?
Paul
The text was updated successfully, but these errors were encountered: