Integrate Azure AD logs with Azure Monitor logs
This article was recently updated to use the term Azure Monitor logs instead of Log Analytics. Log data is still stored in a Log Analytics workspace and is still collected and analyzed by the same Log Analytics service. We are updating the terminology to better reflect the role of logs in Azure Monitor. See Azure Monitor terminology changes for details.
Azure Monitor logs allows you to query data to find particular events, analyze trends, and perform correlation across various data sources. With the integration of Azure AD activity logs in Azure Monitor logs, you can now perform tasks like:
Compare your Azure AD sign-in logs against security logs published by Azure Security Center
Troubleshoot performance bottlenecks on your application’s sign-in page by correlating application performance data from Azure Application Insights.
The following video from an Ignite session demonstrates the benefits of using Azure Monitor logs for Azure AD logs in practical user scenarios.
In this article, you learn how to integrate Azure Active Directory (Azure AD) logs with Azure Monitor.
You can route audit activity logs and sign-in activity logs to Azure Monitor logs for further analysis.
- Audit logs: The audit logs activity report gives you access to the history of every task that's performed in your tenant.
- Sign-in logs: With the sign-in activity report, you can determine who performed the tasks that are reported in the audit logs.
B2C-related audit and sign-in activity logs are not supported at this time.
To use this feature, you need:
- An Azure subscription. If you don't have an Azure subscription, you can sign up for a free trial.
- An Azure AD tenant.
- A user who's a global administrator or security administrator for the Azure AD tenant.
- A Log Analytics workspace in your Azure subscription. Learn how to create a Log Analytics workspace.
Using this feature requires an Azure AD Premium P1 or P2 license. To find the right license for your requirements, see Comparing generally available features of the Free, Basic, and Premium editions.
Send logs to Azure Monitor
Sign in to the Azure portal.
Select Azure Active Directory > Diagnostic settings -> Add diagnostic setting. You can also select Export Settings from the Audit Logs or Sign-ins page to get to the diagnostic settings configuration page.
In the Diagnostic settings menu, select the Send to Log Analytics workspace check box, and then select Configure.
Select the Log Analytics workspace you want to send the logs to, or create a new workspace in the provided dialog box.
Do either or both of the following:
- To send audit logs to the Log Analytics workspace, select the AuditLogs check box.
- To send sign-in logs to the Log Analytics workspace, select the SignInLogs check box.
Select Save to save the setting.
After about 15 minutes, verify that events are streamed to your Log Analytics workspace.