1
votes

In my storage account Diagnostics settings I have "Retention (days)" set to 30. When I use the Azure Storage Explorer to check the $logs container, I can still see all the logs since I created my storage account, more than 60 days ago.

My understanding of the Retention setting was that Azure would purge the $logs container of anything older than the specified number of days. Did I misunderstand, or is something amiss?

1
Which Retention setting are you looking at? There is one for Monitoring which will control the $Metrics tables, and one for Logging which will control the $logs container.kwill
@kwill I'm using the Preview portal, where monitoring and logging are both configured under the Diagnostics blade. There's only one retention setting there, which apparently only applies to monitoring.BenV

1 Answers

0
votes

Yes, if you set the retention policy under logging for the object and type of requests, the log entries will be deleted after number of days that you set in the policy. See more details under "How to: Configure Logging" section in the following documentation https://azure.microsoft.com/en-us/documentation/articles/storage-monitor-storage-account/.

Can you check and make sure that the entries that were left undeleted are for the objects and requests that you did not set retention policy?