Azure-docs: Audit / SQLSecurityAuditEvents: Currently unavailable??

Created on 7 Sep 2018  ยท  11Comments  ยท  Source: MicrosoftDocs/azure-docs

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


Document Details

โš  Do not edit this section. It is required for docs.microsoft.com โžŸ GitHub issue linking.

cxp product-question sql-databassvc triaged

All 11 comments

Here is a screenshot. ๐Ÿ˜„
2018-09-07 11_34_30-diagnostics settings - microsoft azure

@mikaelsnavy Thanks for the feedback. We are actively investigating and will get back to you soon.

@mikaelsnavy

  • For the Audit and SQLSecurityAuditEvents raw logs to flow to Log Analytics, you need to have the this enabled from the security features ATP and Auditing on the SQL Database menu.
  • Please note that this raw telemetry can only be used for custom querying from Log Analytics using the Log Analytics Language.
  • In terms of the graphical user interface (UI), please note that the intended UI for these two logs are solutions under the Security section of SQL Database in the Azure portal. These two logs are not supported in the UI of the Azure SQL Analytics monitoring solution.

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

image

image

image

image

@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.

Was this page helpful?
0 / 5 - 0 ratings