Audit, eDiscovery & Graph Logs
Purview Audit (Standard and Premium) · audit search and retention · eDiscovery Content search · Microsoft Graph activity logs
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Purview Audit: what you get
| Capability | Audit (Standard) | Audit (Premium) |
|---|---|---|
| Default retention | 180 days | One year for Microsoft Entra ID, Exchange, OneDrive and SharePoint records; 180 days for other activities (unless a policy says otherwise) |
| Audit log retention policies | No | Yes, up to 10 years with the add-on license |
| Intelligent insights | No | Yes (needs an E5 license and the Advanced Auditing service plan) |
| Search tool, Search-UnifiedAuditLog, Audit Search Graph API, CSV export | Yes | Yes (Premium includes all Standard functionality) |
- Audit log search is on by default for Microsoft 365 and Office 365 enterprise organizations. Check
UnifiedAuditLogIngestionEnabledin Exchange Online PowerShell. In Security & Compliance PowerShell the property is alwaysFalse, even when search is on. - The cmdlet behind the search tool is Search-UnifiedAuditLog (Exchange Online). To download audit data programmatically, use the Office 365 Management Activity API, not a PowerShell script.
- Audit (Standard) logs generated before October 17, 2023 are kept 90 days; logs generated on or after that date follow the 180-day default.
- Records from non-user entities (service principals, system events, application activities) are kept for a fixed one year; custom retention policies don't apply to them.
- Microsoft doesn't guarantee when a record appears. For core services it is typically 60 to 90 minutes after the event.
- Searching Power BI activity needs auditing enabled in the Power BI admin portal.
Permissions and setup
| Role group | Can do |
|---|---|
| Audit Reader | Search and export the audit log. Can't enable or disable audit logging. Grants View-Only Audit Logs. |
| Audit Manager | Search and export, and manage audit settings such as enabling or disabling audit logging. Grants View-Only Audit Logs and Audit Logs. |
- To search you need the Audit Logs or View-Only Audit Logs role in the Microsoft Purview portal. Exchange admin center permissions are required to enable or disable auditing and to use the audit cmdlets.
- SearchQueryInitiatedExchange must be enabled explicitly. SearchQueryInitiatedSharePoint is enabled by default.
- Audit (Premium) features such as intelligent insights need an E5 license and the Advanced Auditing app/service plan for the user. Logging of insights begins within 24 hours.
- Auditing user interactions with non-Microsoft 365 AI data needs pay-as-you-go billing.
- Scoping by administrative units: a restricted admin sees only user-generated logs of the assigned units; an unrestricted admin (no units) sees all logs, including non-user and system accounts.
Audit search jobs
- Open the Microsoft Purview portal, select the Audit solution card, and set the search criteria on the Search page.
- Default date range is the last seven days. The maximum range is 180 days. Times are UTC.
- Activities - operations names takes exact operation names separated by commas; a wrong name returns no results. Keyword Search only searches indexed content, not audit data content.
- Jobs keep running if you close the browser. Completed jobs are kept 30 days. Up to 10 jobs run at once per admin user, with one unfiltered job. Broad jobs in large tenants can take up to 48 hours.
- Deleting a job removes only the job definition and its result, not the backend data.
- Export to CSV: up to 50,000 rows for Audit (Standard) and 1,000,000 rows for Audit (Premium).
Audit log retention policies (Premium)
- You need the Organization Configuration role to create or modify a policy. Up to 50 policies per organization.
- Duration options: 7 days, 30 days, 6 months, 9 months, 1 year, 3 years, 5 years, 7 years. 10 years needs the 10-year add-on license.
- Priority 1 to 10000: a lower value is a higher priority. Custom policies take priority over the default policy.
- The default policy (Entra ID, Exchange, OneDrive, SharePoint for one year) can't be modified. A policy name must be unique and can't be changed after creation.
- Leaving Users blank applies the policy to all users.
eDiscovery Content search
- Microsoft Purview eDiscovery identifies, reviews and manages content in Microsoft 365 services. All Content Search functionality now sits in a system generated eDiscovery case for the eDiscovery manager and Administrator role groups.
- Classic Content Search, eDiscovery (Standard) and eDiscovery (Premium) were retired on August 31, 2025. The classic guidance applies only to Microsoft 365 operated by 21Vianet.
- Statistics in searches replace collections. What earlier versions called jobs (tasks, activities and reports) are now called processes.
- eDiscovery Manager role group: eDiscovery Managers can access and manage only the cases they create. eDiscovery Administrator: sees all cases, configures solution settings, and is the only role that can remove case members.
- Add a group to the eDiscovery Manager subgroup only as a mail-enabled security group. Distribution groups and Microsoft 365 Groups aren't supported, and a group can't be a case member.
- To assign eDiscovery permissions you need Organization Management or the Role Management role.
| Search rule | Detail |
|---|---|
| Time zone | UTC; can't be changed |
| Case | Keyword searches are always case-insensitive; no opt-out |
| Operators | AND, OR, NOT, NEAR must be uppercase |
| Empty keyword | Returns all content in the selected data sources |
| Statistics | Show hit counts and top locations; locations with errors show in red and can be retried with Retry failed locations |
| Next step | Send results to a review set or export them |
Microsoft Graph activity logs
- They are an audit trail of all HTTP requests the Microsoft Graph service processes for a tenant. Table:
MicrosoftGraphActivityLogs. - Prerequisites: Microsoft Entra ID P1 or P2 license, a supported admin role (Security Administrator is the only least privileged role for the diagnostic settings), and an Azure subscription with a destination.
- Destinations: Log Analytics workspace (analysis), Storage account (long-term storage), Event Hubs (external SIEM).
- Requests to the Microsoft MCP Server for Enterprise have a
RequestUrithat includes/enterprise. ClientAuthMethod: 0 public client, 1 client ID and secret, 2 client certificate.- Limits: you can't filter the logs in diagnostic settings (a workspace transformation or the Basic log data plan can reduce cost). Delivery is usually within 30 minutes, up to 2 hours. You can't see a multitenant app's activity in another tenant.
| Use case | Query hint |
|---|---|
| Throttled apps | ResponseStatusCode == 429 |
| Failed authorization to groups | ResponseStatusCode == 401 or ResponseStatusCode == 403, RequestUri contains "/groups" |
| Risky users | join with AADRiskyUsers on UserId == Id |
| Correlate with sign-ins | SignInActivityId = UniqueTokenIdentifier in the sign-in tables |
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Check unified audit log ingestion (Exchange Online PowerShell) | - | Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabled |
| Turn audit log search off (Exchange Online PowerShell) | - | Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false |
| Find throttled Graph API callers | MicrosoftGraphActivityLogs | where TimeGenerated > ago(3d) | where ResponseStatusCode == 429 | - |
Exam Tips
Tick each tip once you can answer it without looking.
“Check whether audit log search is on” → Run Get-AdminAuditLogConfig in Exchange Online PowerShell and read UnifiedAuditLogIngestionEnabled. Trap: In Security & Compliance PowerShell the property is always False, even when search is on.
“Analyst may search and export audit logs but not change audit settings” → Audit Reader role group (View-Only Audit Logs). Trap: Audit Manager also manages audit settings such as enabling or disabling logging.
“E5 user, default Audit (Premium) retention for Exchange or SharePoint records” → One year (Entra ID, Exchange, OneDrive, SharePoint). Trap: Other activities keep 180 days; Audit (Standard) is 180 days (90 days before October 17, 2023).
“Keep audit records longer than the default” → Audit log retention policy (Premium); needs the Organization Configuration role. Trap: 10 years also needs the 10-year add-on license. Up to 50 policies.
“Two retention policies match; which wins” → The lower priority number (1 is highest); custom policies beat the default policy. Trap: Duration doesn't decide it; priority does.
“Find exact operations such as SPOIBIsEnabled and SPOIBIsDisabled” → Activities - operations names, exact names separated by commas. Trap: A misspelled name returns no results; Keyword Search covers only indexed content.
“Log what users search for in Exchange Online or SharePoint” → Intelligent insights (Audit Premium): E5 license plus the Advanced Auditing service plan; SearchQueryInitiatedExchange must be enabled explicitly. Trap: SearchQueryInitiatedSharePoint is enabled by default.
“Audit search job limits” → Up to 10 running per admin, one unfiltered; max range 180 days; completed jobs kept 30 days. Trap: Jobs keep running after you close the browser; deleting a job doesn't delete backend data.
“Limit an analyst's audit search to one administrative unit” → Assign the unit so the analyst is a restricted admin. Trap: An unrestricted admin (no units) sees all logs, including non-user and system accounts.
“Where Content search lives now (not 21Vianet)” → eDiscovery in the Purview portal: system generated Content Search case. Trap: Classic Content Search was retired August 31, 2025.
“Who can remove a member from an eDiscovery case” → Only an eDiscovery Administrator. Trap: A manager can't, even if they created the case.
“Search with no keyword or condition” → Returns all content in the selected data sources. Trap: It doesn't return nothing; run Generate statistics first for a broad scope.
“Add a group to the eDiscovery Manager subgroup” → Mail-enabled security group. Trap: Distribution groups and Microsoft 365 Groups aren't supported.
“Turn on Microsoft Graph activity logs” → Diagnostic settings in Azure Monitor; Entra ID P1 or P2; Security Administrator is the least privileged role. Trap: You can't filter the logs in diagnostic settings; use a workspace transformation.
“Send Graph activity logs to a third-party SIEM” → Azure Event Hubs. Trap: Log Analytics is for analysis, Storage for long-term storage.
“Find throttled apps in MicrosoftGraphActivityLogs” → Filter ResponseStatusCode == 429. Trap: 401 or 403 means authorization failures.
Sources
- Search the audit log
- Get started with auditing solutions
- Learn about auditing solutions in Microsoft Purview
- Manage audit log retention policies
- Learn about eDiscovery
- Microsoft Purview eDiscovery legacy solutions
- Assign permissions in eDiscovery
- Create a search for a case in eDiscovery
- Evaluate and refine search results in eDiscovery
- Access Microsoft Graph activity logs for tenant monitoring
Checked against Microsoft Learn on November 13, 2026.