Search code examples
azurelogginganalyticsinteractiveretention

Is there a way to set up my Azure Log Interactive retention only for 7 Days?


Is there a way to set up my Azure Log Interactive retention only for 7 Days ? It is set to 30 Days by default and from the Azure portal option is not there.

We are using the Log analytics but we want the data to be stored only for 7 Days. Not for 30 Days


Solution

  • For tables with Table plan - Analytics has Interactive retention set to 30 days by default.

    enter image description here

    • I can see an option to change the Table plan for few tables. Ex: AppTraces, AzureDiagnostics,ContainerLog,

    enter image description here

    • I have changed the Table Plan to Basic, I can see the option Interactive retention has changed to 8 days andTotal retention period has an option Same as interactive retention(8 days).

    enter image description here

    • Change the Total retention period to Same as interactive retention (8 days) and Save.
    • As per my observation Azure Log Interactive retention can be changed but only for few tables as mentioned.