Analyze activity logs using Log Analytics - Microsoft Entra ID (2024)

  • Article

After you integrate Microsoft Entra activity logs with Azure Monitor logs, you can use the power of Log Analytics and Azure Monitor logs to gain insights into your environment.

  • Compare your Microsoft Entra sign-in logs against security logs published by Microsoft Defender for Cloud.

  • Troubleshoot performance bottlenecks on your application’s sign-in page by correlating application performance data from Azure Application Insights.

  • Analyze the Identity Protection risky users and risk detections logs to detect threats in your environment.

This article describes to analyze the Microsoft Entra activity logs in your Log Analytics workspace.

Prerequisites

To analyze activity logs with Log Analytics, you need:

  • A Microsoft Entra tenant with a Premium P1 license
  • A Log Analytics workspace and access to that workspace
  • The appropriate roles for Azure Monitor and Microsoft Entra ID

Log Analytics workspace

You must create a Log Analytics workspace. There are several factors that determine access to Log Analytics workspaces. You need the right roles for the workspace and the resources sending the data.

For more information, see Manage access to Log Analytics workspaces.

Azure Monitor roles

Azure Monitor provides two built-in roles for viewing monitoring data and editing monitoring settings. Azure role-based access control (RBAC) also provides two Log Analytics built-in roles that grant similar access.

  • View:

    • Monitoring Reader
    • Log Analytics Reader
  • View and modify settings:

    • Monitoring Contributor
    • Log Analytics Contributor

For more information on the Azure Monitor built-in roles, see Roles, permissions, and security in Azure Monitor.

For more information on the Log Analytics RBAC roles, see Azure built-in roles

Microsoft Entra roles

Read only access allows you to view Microsoft Entra ID log data inside a workbook, query data from Log Analytics, or read logs in the Microsoft Entra admin center. Update access adds the ability to create and edit diagnostic settings to send Microsoft Entra data to a Log Analytics workspace.

  • Read:

    • Reports Reader
    • Security Reader
    • Global Reader
  • Update:

    • Security Administrator

For more information on Microsoft Entra built-in roles, see Microsoft Entra built-in roles.

Access Log Analytics

To view the Microsoft Entra ID Log Analytics, you must already be sending your activity logs from Microsoft Entra ID to a Log Analytics workspace. This process is covered in the How to integrate activity logs with Azure Monitor article.

Tip

Steps in this article might vary slightly based on the portal you start from.

  1. Sign in to the Microsoft Entra admin center as at least a Reports Reader.

  2. Browse to Identity > Monitoring & health > Log Analytics. A default search query runs.

    Analyze activity logs using Log Analytics - Microsoft Entra ID (1)

  3. Expand the LogManagement category to view the list of log related queries.

  4. Select or hover over the name of a query to view a description and other useful details.

    Analyze activity logs using Log Analytics - Microsoft Entra ID (2)

  5. Expand a query from the list to view the schema.

    Analyze activity logs using Log Analytics - Microsoft Entra ID (3)

Query activity logs

You can run queries against the activity logs being routed to a Log Analytics workspace. For example, to get a list of applications with the most sign-ins from last week, enter the following query and select the Run button.

SigninLogs | where CreatedDateTime >= ago(7d)| summarize signInCount = count() by AppDisplayName | sort by signInCount desc 

To get the top audit events over the last week, use the following query:

AuditLogs | where TimeGenerated >= ago(7d)| summarize auditCount = count() by OperationName | sort by auditCount desc 

Set up alerts

You can also set up alerts on a query. After you run a query, the + New alert rule button becomes active.

  1. From Log Analytics, select the + New alert rule button.

    • The Create a rule process involves several sections to customize the criteria for the rule.
    • For more information on creating alert rules, see Create a new alert rule from the Azure Monitor documentation, starting with the Condition steps.

    Analyze activity logs using Log Analytics - Microsoft Entra ID (4)

  2. On the Actions tab, select the Action Group that should receive the alert when the signal occurs.

    • You can choose to notify your team via email or text message, or you could automate the action using webhooks, Azure functions or logic apps.
    • Learn more about creating and managing alert groups in the Azure portal.
  3. On the Details tab, give the alert rule a name and associate it with a subscription and resource group.

  4. After configuring all necessary details, select the Review + Create button.

Use workbooks to analyze logs

Microsoft Entra workbooks provide several reports related to common scenarios involving audit, sign-in, and provisioning events. You can also alert on any of the data provided in the reports, using the steps described in the previous section.

  • Provisioning analysis: This workbook shows reports related to auditing provisioning activity. Activities can include the number of new users provisioned, provisioning failures, number of users updated, update failures, the number of users deprovisioned, and corresponding failures. For more information, see Understand how provisioning integrates with Azure Monitor logs.

  • Sign-ins Events: This workbook shows the most relevant reports related to monitoring sign-in activity, such as sign-ins by application, user, device, and a summary view tracking the number of sign-ins over time.

  • Conditional Access insights: The Conditional Access insights and reporting workbook enables you to understand the effect of Conditional Access policies in your organization over time. For more information, see Conditional Access insights and reporting.

Next steps

  • Get started with queries in Azure Monitor logs
  • Create and manage alert groups in the Azure portal
Analyze activity logs using Log Analytics - Microsoft Entra ID (2024)
Top Articles
Comment choisir sa queue de billard ? | René Pierre
Stakeholder Collaboration | Examples, Benefits & Steps
Dte Outage Map Woodhaven
Pangphip Application
Craigslist Vans
Lighthouse Diner Taylorsville Menu
Jeremy Corbell Twitter
Professor Qwertyson
Tyrunt
Free VIN Decoder Online | Decode any VIN
Tanger Outlets Sevierville Directory Map
Maxpreps Field Hockey
Qhc Learning
83600 Block Of 11Th Street East Palmdale Ca
Darksteel Plate Deepwoken
Labor Gigs On Craigslist
7 Fly Traps For Effective Pest Control
Images of CGC-graded Comic Books Now Available Using the CGC Certification Verification Tool
Plan Z - Nazi Shipbuilding Plans
Accident On May River Road Today
China’s UberEats - Meituan Dianping, Abandons Bike Sharing And Ride Hailing - Digital Crew
Curry Ford Accident Today
Pjs Obits
Kaitlyn Katsaros Forum
Vegito Clothes Xenoverse 2
Baldur's Gate 3: Should You Obey Vlaakith?
Troy Gamefarm Prices
Jcp Meevo Com
Watson 853 White Oval
Coindraw App
2023 Ford Bronco Raptor for sale - Dallas, TX - craigslist
Top Songs On Octane 2022
Dtlr On 87Th Cottage Grove
Http://N14.Ultipro.com
Jay Gould co*ck
1400 Kg To Lb
Morlan Chevrolet Sikeston
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Royals op zondag - "Een advertentie voor Center Parcs" of wat moeten we denken van de laatste video van prinses Kate?
10 Most Ridiculously Expensive Haircuts Of All Time in 2024 - Financesonline.com
ATM Near Me | Find The Nearest ATM Location | ATM Locator NL
Bbc Gahuzamiryango Live
Kazwire
Craigslist En Brownsville Texas
F9 2385
2132815089
Sofia Franklyn Leaks
Leland Westerlund
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Dineren en overnachten in Boutique Hotel The Church in Arnhem - Priya Loves Food & Travel
Fresno Craglist
Ok-Selection9999
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 6580

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.