Microsoft 365 Audit Log Retention Periods: Standard (180 Days) vs. Purview Premium
Microsoft Purview Audit (Standard) retains Unified Audit Log records for 180 days, while Purview Audit (Premium) retains core Exchange, SharePoint, OneDrive, and Entra audit records for 1 year by default and up to 10 years with an add-on license. Crucially, Entra ID Sign-In logs expire after just 30 days on P1/P2 (7 days on Entra Free) unless archived externally.
Architecture & Telemetry Context
Nothing derails a breach investigation faster than discovering critical login telemetry vanished two weeks ago due to silent rolling retention cutoffs. Microsoft 365 stores security evidence across multiple independent pipelines—each governed by completely different licensing tiers and expiration windows.
Defenders investigating long-dwell intrusions (such as quiet forwarding rules planted 60 or 120 days prior to a wire fraud attempt) need an exact map of which artifact survives where, so Day-1 forensic collection prioritizes the shortest-lived logs first.
Microsoft increased Purview Audit (Standard) retention from 90 days to 180 days globally in late 2023—covering Exchange, SharePoint, OneDrive, Teams, and Entra directory audit logs inside Unified Audit Logs. Organizations licensed for E5 or Purview Audit (Premium) automatically receive a default 1-year retention policy for core workloads and can assign custom policies up to 10 years with the 10-Year Audit Log Retention add-on.
However, Entra ID’s dedicated Sign-In Logs blade (Interactive, Non-Interactive, Service Principal) is NOT governed by Purview Audit retention. Entra Sign-In logs purge strictly at 30 days (Entra ID P1/P2) or 7 days (Entra ID Free). When probing logins older than 30 days without a SIEM, Purview UAL UserLoggedIn and UserLoginFailed events become your primary fallback evidence.
Microsoft 365 Forensic Log Retention Comparison Matrix
| Log Source | Default Window | Extended Option & Fallback Source |
|---|---|---|
| Entra Interactive & Non-Interactive Sign-Ins | 30 days (P1/P2) / 7 days (Free) | Sentinel / Log Analytics / Blob Archive; fallback: UAL UserLoggedIn (180d) |
| Purview Unified Audit Log (UAL) | 180 days (Standard) | 1 year (E5/Audit Premium) or 10 years (Add-on) |
| Exchange Message Trace | 10 days instant / 90 days Extended | Export CSV before day 90; archive SMTP logs to SIEM |
| Deleted Mailbox Items (Single Item Recovery) | 14 days default | Raise RetainDeletedItemsFor to 30 days or enable Litigation Hold |
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
Purview Audit (Standard) | 180 days rolling retention | E3 / Business Standard / Business Premium |
Purview Audit (Premium) | 1 year default (10 years w/ add-on) | Microsoft 365 E5 or Audit Premium add-on |
Entra ID Sign-In Logs | 30 days (7 days on Entra Free) | Stream Diagnostic Settings to Log Analytics/Storage |
Entra Directory Audit Logs | 30 days in Entra blade (180d in Purview UAL) | Always check Purview UAL RecordType 8 beyond 30d |
Exchange Message Trace | 10 days live / 90 days historical downloadable CSV | Historical trace queued async via Exchange Admin |
Exchange Recoverable Items | 14 days default (configurable up to 30 days) | Preserves Soft/HardDeleted emails unless Litigation Hold set |
Purview UserLoggedIn Event Surviving Beyond Entra 30-Day Cutoff
{
"CreationTime": "2026-10-14T11:22:08Z",
"RecordType": 15,
"Workload": "AzureActiveDirectory",
"Operation": "UserLoggedIn",
"ResultStatus": "Success",
"UserId": "ap@contoso-demo.invalid",
"ClientIP": "185.220.101.45",
"ExtendedProperties": [
{ "Name": "RequestType", "Value": "OAuth2:Token" },
{ "Name": "UserAgent", "Value": "axios/1.7.7" }
]
}
Even 48 days after the intrusion—long after Entra Sign-In JSON expired—this Purview UAL record preserves CreationTime, ClientIP, ResultStatus, and UserAgent inside ExtendedProperties.
AuditVane normalizes RecordType 15 UserLoggedIn records seamlessly alongside newer Entra JSON exports so multi-month investigations stay unified.
Check Active Retention Policies & Mailbox Deletion Retention
Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabled
Get-UnifiedAuditLogRetentionPolicy | Format-Table Name, RecordTypes, Operations, RetentionDuration, Priority
Get-Mailbox -ResultSize Unlimited | Select-Object UserPrincipalName, RetainDeletedItemsFor, SingleItemRecoveryEnabled, LitigationHoldEnabled
Sample Retention Policy Inspection Output
Name RecordTypes RetentionDuration Priority
---- ----------- ----------------- --------
Default-Audit-Policy Exchange,AzureAD,SharePoint SixMonths 10000
Real-World Incident Walkthrough
A mid-market manufacturer discovers on December 1 that a vendor payment was diverted in mid-October (48 days earlier). Opening the Entra ID Sign-In logs blade shows records only back to November 1—everything from October has already rolled off the 30-day Entra window.
Rather than declaring the root cause unknowable, the analyst exports 180 days of Purview Unified Audit Logs via Search-UnifiedAuditLog for the affected finance account. Loading the CSV into AuditVane surfaces UserLoggedIn (RecordType 15) and New-InboxRule events from October 14 complete with ClientIP and ExtendedProperties.UserAgent—recovering the exact attacker entry point.
Step-by-Step Triage, Containment & Verification
- On Day 1 of any suspected compromise, export Entra Sign-In JSON logs and Extended Message Trace CSVs immediately—both expire fastest (30 and 90 days).
- Check whether the tenant holds E3 (180-day UAL) or E5/Audit Premium (1-year/10-year UAL) using Get-UnifiedAuditLogRetentionPolicy.
- For compromises older than 30 days, extract UserLoggedIn and UserLoginFailed operations from Purview UAL via Search-UnifiedAuditLog.
- Raise RetainDeletedItemsFor to 30 days across sensitive finance/executive mailboxes to protect deleted email evidence.
- Configure Entra ID Diagnostic Settings to stream SigninLogs, AADNonInteractiveUserSignInLogs, and AuditLogs to Log Analytics or immutable Azure Storage for future incidents.
- Drop preserved CSV/JSON snapshots into AuditVane locally whenever revisiting historical case evidence.
How to Verify Containment Completed Cleanly
- Entra Sign-In logs exported locally before the 30-day rolling expiration window passes.
- Extended Message Trace queued for up to 90 days on compromised senders.
- Diagnostic Settings verified streaming Entra + OfficeActivity logs to long-term storage.
Analyst Blind Spots, Licensing Quirks & False Positives
Upgrading a tenant to Microsoft 365 E5 or creating a 1-year Purview Retention Policy does NOT magically restore events that already aged past 180 days prior to the policy change. Retention clocks only apply forward from policy activation.
Another common surprise: non-interactive sign-ins and Risk Detections in Entra ID also follow the 30-day window (or shorter on Free tier), even if Purview UAL holds 180 days of UserLoggedIn events.
Frequently Asked Questions
Why did my Entra ID Sign-In logs stop showing data 31 days ago?
Entra ID Sign-In Logs retain 30 days on Entra P1/P2 (and only 7 days on Entra Free). Export them on Day 1 or check Purview UAL UserLoggedIn events up to 180 days back.
How long are Purview Unified Audit Logs kept on Business Premium or E3?
Purview Audit (Standard)—included in E3, E1, and Business Standard/Premium—retains logs for 180 days.
Does Purview Audit Premium extend Entra Sign-In blade retention?
No! Audit Premium extends Purview Unified Audit Log retention to 1 year (or 10 years with add-on), whereas the Entra Sign-In blade still requires Azure Monitor Diagnostic Settings for >30-day archiving.
Does AuditVane retain any logs I inspect past Microsoft’s window?
No. AuditVane stores zero logs on any server; keep raw exported CSV/JSON files safely in your own encrypted evidence vault.