Hello!
I'm now seeing Audit and SQLSecurityAuditEvents: as log options inside "Monitor - Diagnostics settings -> Diagnostics settings" in the Azure portal. Are these still unavailable even though the options are there?
Thanks!
Mikael
โ Do not edit this section. It is required for docs.microsoft.com โ GitHub issue linking.
Here is a screenshot. ๐

@mikaelsnavy Thanks for the feedback. We are actively investigating and will get back to you soon.
@mikaelsnavy
Thanks for the response @danimir! I've enabled Auditing on my Azure SQL database and server and I can see the audit events through the Azure SQL Database UI. I've also enabled "Send to Log Analytics" for "Audit" inside "Monitor - Diagnostics settings" for both my database and master for my Azure SQL database.
I'm still having trouble custom querying the telemetry out of Log Analytics. Running "search *" still returns zero records. Do you know what else I missed? ๐
Thanks
Mikael




@mikaelsnavy In order to verify and see all logs streaming to the solution, execute this query in Log Analytics:
AzureDiagnostics | distinct Category
This query should list out all log categories streaming into the solution. However, please note that in order for logs to flow, there needs to be data generated (no data - no logs). Depending on the log used, database needs to have some data\workload for diagnostics logs, and for security logs there need to exist security events.
Thank you! I appreciate it. If I learn anything different than what the docs say, I'll bring the knowledge back to this space. ๐๐๐ฝ
Thanks so much!
Mikael
@mikaelsnavy
Update: I've reached out to the security team owning the Audit log. The way to enable streaming of Audit low raw data into Log Analytics is not through the Diagnostics blade (although the switch is there). This can be enabled through the Auditing option (either at the SQL database or the logical server blade) inside the Azure portal. See here: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-auditing
On this blade, below the switch for auditing, there is an option Audit log destination. In this destination, chose Log Analytics (Preview). The settings on the diagnostics blade will be created automatically once you save auditing settings with the new options. This is only to stream raw audit data into Log Analytics for your own custom implementations. The recommended way of use the security features is still through the portal UI.
Hope this helps.
Just tested streaming to Log Analytics at the actual SQL level and it is working!! Thanks so much!
@danimir Sorry for asking about this closed thread. Does this apply to the Managed Instance SQL database as well? I'm looking for how to view SQLSecurityAuditEvents but I couldn't find it.
@kazshi - Hi there, no problems, glad to help. As far as I know the Audit is not enabled for Managed Instance as of yet. The owners of the Audit feature are owning this page: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-auditing, so I would advise to ask this question directly from the audit feature owners. Thanks! :)
@danimir Thank you for the information.