Microsoft Sentinel
Cloud and workloads

Auditing Lake Activities

In brief

The page now states that users must have the View-Only Audit Logs or Audit Logs role and remote PowerShell access before running the audit-log script. The page metadata and link wording were also updated.

What Defender admins need to know

Verify these roles and connectivity before using the script.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

#customer intent: As a SOC analyst, I want to learn how to use the audit log to search for Microsoft Sentinel data lake activities to help with investigation.

Search for events using a PowerShell script

Before you run this script, make sure you have the View-Only Audit Logs or Audit Logs role in Exchange Online and that you can connect to Exchange Online via remote PowerShell.

You can use the following PowerShell code snippet to query the Office 365 Management API to retrieve information about Microsoft Sentinel data lake and graph audit events. This script opens a remote Exchange Online session, imports the session cmdlets, and then runs Search-UnifiedAuditLog to search for audit log entries within a specified date range and record type.


For more information,instructions on using PowerShell to search the audit log, see Use a PowerShell script to search the audit log

Related content