Contoso runs four Azure Databricks workspaces, one for each business unit. All four workspaces use the Premium plan. The operations team already collects logs from other Azure services in a Log Analytics workspace named law-central. A storage account named stcontosoarchive already exists.
You must meet the following requirements:
- Capture cluster, job, and permission-change events from all four Databricks workspaces.
- Make the events queryable with KQL in law-central alongside the other Azure service logs.
- Keep a copy of the same events in the existing storage account stcontosoarchive for long-term retention.
What should you configure to meet all the requirements?
Log streaming uses Azure diagnostic settings. A diagnostic setting captures the events of the Databricks workspace it is configured on and routes them to a Log Analytics workspace, where they can be queried with KQL alongside other Azure data. The same diagnostic setting can also archive the logs to a storage account. A setting is therefore needed on each of the four workspaces, with both law-central and stcontosoarchive as destinations.
- Not correct: On each workspace, a diagnostic setting that archives logs to stcontosoarchive and streams them to an event hub. This archives logs from all four workspaces. Sending the events to an event hub leaves the KQL requirement unmet because the setting does not route them to law-central.
- Not correct: A Databricks SQL query on system.access.audit that exports results to stcontosoarchive. The system.access.audit table is recommended for querying audit logs within Azure Databricks itself. Log streaming is the approach to use when you need KQL and integration with Azure Monitor and other Azure services. This option does not put the events in law-central.
- Not correct: On one workspace, a diagnostic setting that sends logs to law-central and archives them to stcontosoarchive. A diagnostic setting captures events from the Azure Databricks workspace it is configured on. The other three workspaces would send nothing, so the capture requirement for all four workspaces is not met.
- Not correct: On each workspace, a diagnostic setting that sends logs to law-central and streams them to an event hub. This makes logs from all four workspaces queryable in law-central. Streaming to an event hub leaves the archival requirement unmet because the setting does not send a copy to stcontosoarchive.
- Correct: On each workspace, a diagnostic setting that sends logs to law-central and archives them to stcontosoarchive. Diagnostic settings capture the events of the Databricks workspace they are configured on and route them to Log Analytics, where they can be queried with KQL. They can also archive the logs to a storage account. Configuring one on each workspace covers all four workspaces.