Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

Microsoft Learn, Microsoft Entra data retention, Activity reports table showing audit logs and sign-ins kept for seven days on Microsoft Entra ID Free and 30 days on P1 and P2, with Microsoft Graph activity logs marked as needing integration with storage or analytics tools.
Screenshot: Microsoft Learn, Microsoft Entra data retention, Microsoft (fair use).

Response

Did You Know: Microsoft Entra Keeps Sign-In and Audit Logs for Only Seven Days on a Free Tenant and 30 Days on P1 or P2, and Upgrading After an Incident Does Not Bring Back What Has Expired

The identity side of an incident timeline starts with who signed in and what changed. In Microsoft Entra ID that record has a shelf life set by the license: seven days of sign-in and audit logs on the free tier, 30 days on P1 or P2, and no stored Microsoft Graph activity logs at all unless someone routed them somewhere first.

Noah Park, ResponseNew York3 min read

NEW YORK - When a responder is called to a suspected account takeover in a Microsoft cloud tenant, the Microsoft Entra sign-in and audit logs hold the identity side of the story: which account authenticated, from where, and what was changed in the directory afterward. How far back that story goes is not a setting a responder can change on the day. Microsoft's data retention page states that "Log storage within Microsoft Entra varies by report type and license type." On Microsoft Entra ID Free, audit logs and sign-ins are kept for seven days. On P1 and P2, both are kept for 30 days.

Microsoft Learn, Microsoft Entra data retention, answer explaining that a premium license cannot show last month's data and a note that log retention changes are not retroactive.
Screenshot: Microsoft Learn, Microsoft Entra data retention, Microsoft (fair use).

Buying a license in the middle of an investigation does not stretch the window backward. The same page answers the question directly: "No, you can't. Azure stores up to seven days of activity data for a free version." Its note is plainer still: "Log retention changes aren't retroactive." After an upgrade from Free to P1 or P2, only data still inside the free seven-day period is available, and "Data that has already expired can't be recovered unless it was previously archived."

Microsoft Learn, Microsoft Entra data retention, Security signals table showing risky sign-ins kept 7, 30 and 90 days by license, and a note on Microsoft Purview Audit (Premium).
Screenshot: Microsoft Learn, Microsoft Entra data retention, Microsoft (fair use).

Other records follow their own clocks. Risky sign-ins are kept for 7 days on Free, 30 days on P1 and 90 days on P2, while risky users carry no limit and are not deleted until the risk has been remediated. Microsoft also notes that "Microsoft Entra ID audit and sign-in logs are separate from the Microsoft 365 Unified Audit Log (UAL)," whose retention is managed through Microsoft Purview Audit. Organizations with Microsoft 365 E5, Office 365 E5, Microsoft Purview Suite or the E5 eDiscovery and Audit add-on can use Purview Audit (Premium) to keep Entra audit logs beyond the default period.

Microsoft Learn, Access Microsoft Graph activity logs, introduction describing an audit trail of all HTTP requests the Microsoft Graph service receives and processes for a tenant.
Screenshot: Microsoft Learn, Access Microsoft Graph activity logs, Microsoft (fair use).

The sharpest gap is Microsoft Graph activity logs, which Microsoft describes as "an audit trail of all HTTP requests that the Microsoft Graph service receives and processes for a tenant." They are available only with P1 or P2, collection starts when the log category is enabled in diagnostic settings, and "Data isn't retained unless it's archived to a storage account or integrated with analytics tools." A tenant that never set that up has no Graph request history to search.

Microsoft Learn, Integrate Microsoft Entra logs with Azure Monitor logs, steps to add a diagnostic setting and send logs to a Log Analytics workspace.
Screenshot: Microsoft Learn, Integrate Microsoft Entra logs with Azure Monitor logs, Microsoft (fair use).

The fix has to be in place before the incident. In the Microsoft Entra admin center, at least a Security Administrator can open Entra ID, then Monitoring and health, then Diagnostic settings, choose the log categories to stream and send them to a Log Analytics workspace, a storage account or an event hub. Microsoft notes that "Integrating Microsoft Entra logs with Azure Monitor automatically enables the Microsoft Entra data connector within Microsoft Sentinel."

For a SOC team, three checks follow. Confirm every tenant has a diagnostic setting that sends sign-in, audit and Graph activity logs somewhere that outlasts the portal window. Write the tenant's license tier into the response runbook, so the team knows on day one whether it has seven days or 30. And when an identity incident opens in a tenant with no export, pull the portal logs that still exist before anything else, because every day of delay removes another day of evidence.

About the Author

Noah Park

Noah Park covers incident response, containment, and blue-team operations for SOCtember from New York.

Related stories

Response desk