Can we turn-off/disable Diagnostic settings from SQL database without deleting it

SivaB 96 Reputation points
2022-10-04T10:47:13.237+00:00

SQL DB Azure log analytics workspace consumption is high due to which cost increased unexpectedly.

We wanted to stop the analytics temporarily, could that possible to disable it from Diagnostic settings on SQL DB.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
996 questions
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,552 Reputation points Microsoft Employee Moderator
    2022-10-06T21:31:41.57+00:00

    Hi, @SivaB
    The Diagnostic Settings are like a faucet to control the flow of logs into Log Analytics. Deleting the Diagnostic Settings stops the flow, but does not delete the actual logs. To resume the flow you will need to make the Diagnostic Settings again.

    If you want to remove the log data from Log Analytics, I recommend you first look at the Retention Date to control how long the data stays before erasing itself. If that is not enough, you can also look into Data Purge to definitively erase the raw data. You can purge the data if it is not needed anymore. But once purged you cannot recover that data. The information available here Workspace Purge - Purge - REST API (Azure Log Analytics) | Microsoft Learn Also LA data is only retained until the retention date, After the retention date the data will be removed, in case you do not want to purge it

    For future scenarios, you can also review the daily cap to keep the cost at bay Set daily cap on Log Analytics workspace - Azure Monitor | Microsoft Learn
    Azure Monitor Logs pricing details - Azure Monitor | Microsoft Learn

    Regards
    Geetha


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.