Unable to see SQLSecurityAuditEvents logs for ResourceType MANAGEDINSTANCES

Shinde, Balaji 116 Reputation points
2023-03-27T12:29:00.26+00:00

Hi All,

We have enabled Diagnostic setting on our SQL Managed instances using Azure policy. But we are not receiving the SQLSecurityAuditEvents for ResourceType MANAGEDINSTANCES. We are getting logs for ResourceType SERVERS/DATABASES, but not for MANAGEDINSTANCES.

attached is the capture.jpg screenshot of one sql maanged instance DiagnosticSetting Page:

So the question is, are the SQLSecurityAuditEvents for ResourceType MANAGEDINSTANCES available in log analytic workspace, if yes, how do we see them?

Below is the query we are using, we get no results.

AzureDiagnostics
| where ResourceProvider =~ "Microsoft.Sql" and Category =~ "SQLSecurityAuditEvents" and ResourceType =~ "MANAGEDINSTANCES"

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,007 Reputation points Microsoft Employee
    2023-04-03T14:30:29.0966667+00:00

    Hi, @Shinde, Balaji Thanks for posting your question in the Microsoft Q&A forum.

    As I understand you have enabled Diagnostic settings on SQL MI but you are not receiving SQLSecurityAuditEvents.

    You Might need additional configuration wherein you can follow this Github link

    1. Diagnostics enabled
    2. Configuration on Specific SQL MI within SQL itself.

    Regards

    Geetha