MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.03k stars 21.05k forks source link

Retention Settings for Logs Sent to Log Analytics Workspace #122608

Closed Vegas588 closed 1 week ago

Vegas588 commented 2 weeks ago

For resource diagnostic settings, you have the following statement:

"The Diagnostic Settings Storage Retention feature is being deprecated. To configure retention for logs and metrics sent to an Azure Storage account, use Azure Storage Lifecycle Management."

That seems to be if you are sending logs to a storage account. What if we are sending our logs to a Log Analytics workspace? What retention settings should we use for that, especially for the Terraform resource azurerm_monitor_diagnostic_setting?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 2 weeks ago

@Vegas588 Thanks for your feedback! We will investigate and update as appropriate.

EdB-MSFT commented 1 week ago

Hi @Vegas588 , Thanks for your question. You can find details about workspace retention setting at Configure the default workspace retention. I'll put this link in the migration article so everyone can find it easily.

EdB-MSFT commented 1 week ago

please-close