Hi Shakti,
This is working now. I selected all logs and configured them to be sent to an analytics workspace. However, I then needed to set the following server parameters:
audit_log_enabled: ON
audit
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We have a Mysql single server and would like to log all of the queries that are run on it (not just the 'slow' ones). What settings do we need to configure to achieve this?
We have currently configured the Azure Diagnostic Settings so that the MySql Audit Logs are archived to a storage account. I can see that data is being written to that account in the following structure:
insights-metrics-pt1m/resourceId=/SUBSCRIPTIONS/
Hi Shakti,
This is working now. I selected all logs and configured them to be sent to an analytics workspace. However, I then needed to set the following server parameters:
audit_log_enabled: ON
audit
Hi Shakti,
This works now. I configured the Diagnostic Setting as in your screenshot and set the following server parameters:
audit
audit_log_events: DML
This logged all of the queries to the insights-logs-mysqlauditlogs blob container under the storage account configured in the diagnostic settings.
I then noticed that I only needed to send the 'MySQL Audit Logs' to the container not 'AllLogs' so updated the Diagnostic Setting. It all still works nicely.
Thankyou for all your help. It is very much appreciated.