Correlate audit, sign-in and device evidence
Combine audit records, sign-ins, device compliance and service health into a clear, privacy-aware incident timeline.
By Invicly Tech, , in Microsoft Entra & Microsoft 365 Administration. About 11 minutes to read.
In short
When something odd happens in a tenant, the answer is usually spread across several logs: the Purview unified audit log, Entra sign-in and audit logs, Intune device compliance and Microsoft 365 service health. Correlating means lining those records up by user, time and IDs to build one timeline. Because logs contain personal data, collect only what the question needs and store it carefully.
Think of it like this: It is like reconstructing a car accident from a dashcam, a parking camera and a toll receipt: each source has a different clock and view, and the story only appears when you line them up.
Explained simply
When something goes wrong in Microsoft 365, the clues are rarely in one place. A sign-in lives in Entra. A changed mailbox rule lives in the Purview audit log. Whether a laptop was healthy lives in Intune. Whether Microsoft itself was broken lives in service health.
Correlation means lining these clues up into one story. You pick a person and a time window, pull each log for that person and window, and sort everything by time. Shared values such as the user ID, IP address and device ID let you connect the records.
Times trip people up. Portals often show your local time, but exports and APIs use UTC. Pick UTC for your notes and convert everything into it, or events will appear in the wrong order.
Logs contain personal data: names, locations, IP addresses and what people opened. Only collect what the question needs, keep it in a folder with limited access, and write down who handled it. This protects the people involved and makes your findings easier to trust.
If you have no tenant, you can practise with the synthetic CSV records in this article. The method is the same: filter, align, join, conclude.
Press Play on a diagram to walk through it one step at a time.
- 1Service health
Was Microsoft having an outage at that time?
- 2Entra sign-in logs
Who signed in, from where, which policy applied
- 3Entra audit logs
Directory changes: users, groups, roles, apps
- 4Purview unified audit
Workload actions: mailbox, files, Teams, admin
- 5Intune compliance
Was the device compliant and when did it check in?
- Analyst to Entra sign-in log: Find sign-in for user, note IP, device ID, time1Find sign-in for user, note IP, device ID, time
- Entra sign-in log to Analyst: Success at 09:14 UTC, device ID d-1022Success at 09:14 UTC, device ID d-102
- Analyst to Unified audit log: Search same user, 09:00 to 10:00 UTC3Search same user, 09:00 to 10:00 UTC
- Unified audit log to Analyst: New inbox rule at 09:16 from same IP4New inbox rule at 09:16 from same IP
- Analyst to Intune: Look up device d-1025Look up device d-102
- Intune to Analyst: Compliant, last check-in 08:506Compliant, last check-in 08:50
- Did the sign-in succeed?
- Which Conditional Access policy applied?
- Who added a user to a role?
- Which app consent was granted?
- Who created an inbox rule?
- Who shared a file externally?
- Who changed a Teams setting?
- Who searched mailboxes?
- Was the device compliant?
- When did it last check in?
- Was a Microsoft service degraded?
- Was a change announced?
In depth
Know each source and how long it keeps data
Entra sign-in logs show interactive and non-interactive sign-ins, service principal sign-ins and managed identity sign-ins, with the Conditional Access result for each. Entra audit logs show changes to users, groups, roles, apps and policies. Both keep 7 days on Entra ID Free and 30 days with P1 or P2; send them to a Log Analytics workspace or storage account with diagnostic settings if you need longer.
The Purview unified audit log covers workloads: Exchange, SharePoint, OneDrive, Teams, Power Platform and admin actions, kept 180 days on Audit Standard. Intune shows device compliance state and last check-in, and its own audit logs record admin changes. Service health in the Microsoft 365 admin center lists incidents and advisories per service, with history for recent days.
- Sign-ins: who, where, which app, which policy
- Entra audit: directory changes
- Unified audit: workload actions
- Intune: device state and check-in
- Service health: Microsoft's side
Joining records without fooling yourself
Start with a precise question, such as: did anyone other than Megan use her account on 20 November? Then choose a window a little wider than the event, for example one hour either side. Pull each source for that user and window, normalise times to UTC and put everything in one table with columns for time, source, action, IP, device and correlation ID.
Join on the strongest key you have. The user object ID is better than a display name. A device ID is better than a device name, which can repeat. IP addresses help but mislead with shared office or VPN addresses and mobile networks. Correlation IDs connect records of the same request within Entra. When two events only match on time, say so in your notes; a coincidence is not proof.
- 1Question
One user, one suspicion, one window
- 2Collect
Read-only pulls from each source
- 3Normalise
UTC times, same column names
- 4Join
Object ID, device ID, IP, correlation ID
- 5Conclude
State facts, confidence and gaps
Ruling out service incidents first
Before you decide a policy broke sign-ins, open Health then Service health in the Microsoft 365 admin center. If there is an active incident for Exchange Online or Microsoft Entra at that time, your users may simply be affected by it. Note the incident ID, such as EX123456, in your timeline. You can also read issues through Microsoft Graph with the service communications API, which needs the ServiceHealth.Read.All permission.
Also check Message center for planned changes, such as a feature rollout, that may explain new behaviour. Ruling these out early saves you from rolling back a correct policy or blaming a user.
Privacy-aware evidence handling
Treat log exports as personal data. Collect only the users, fields and window that answer the question. Store exports in a restricted location, such as a SharePoint library with unique permissions for the incident team, not in email or chat. Record a simple chain of custody: who exported what, when and where it is stored.
Share conclusions, not raw logs, with managers. Redact IP addresses and unrelated users when writing a summary for a wider audience. Agree in advance how long incident evidence is kept, and delete it when that period ends. If an investigation may involve an employee's conduct, involve HR or legal before you look further, because local law may require it.
- Minimum users, fields and time window
- Restricted storage with named access
- Chain of custody log
- Summaries redact unrelated personal data
- Delete evidence on schedule
Learn it in 5 short steps
About 30m each. Track them with a timer in your plan.
- 1Search unified audit logs~30m
- 2Join sign-ins to audit events~30m
- 3Add device compliance~30m
- 4Rule out service incidents~30m
- 5Handle evidence with care~30m
Key points
- Use UTC for every time you write down; portals may show local time.
- Join records on stable values: user object ID or UPN, IP address, device ID, correlation ID and time window.
- Check service health before blaming a policy or a user: many 'incidents' are Microsoft outages.
- Know retention: Entra sign-in logs keep 7 days on the free tier and 30 days with P1 or P2; export earlier if you need more.
- Collect the minimum personal data, store it with restricted access and record who handled it.
Key terms
Tap a card to flip it. 0/6 known
Examples
# Read-only evidence pull for one user and one hour (lab tenant)
Connect-MgGraph -Scopes "AuditLog.Read.All","Directory.Read.All"
$upn = "megan@contoso.example"
$from = "2026-11-20T09:00:00Z"; $to = "2026-11-20T10:00:00Z"
Get-MgAuditLogSignIn -Filter "userPrincipalName eq '$upn' and createdDateTime ge $from and createdDateTime le $to" |
Select-Object CreatedDateTime, IPAddress, AppDisplayName, ConditionalAccessStatus, CorrelationId
Connect-ExchangeOnline
Search-UnifiedAuditLog -StartDate $from -EndDate $to -UserIds $upn -ResultSize 500 |
Select-Object CreationDate, Operations, RecordTypePull sign-ins and workload actions for the same person and window, then line them up.
Build a timeline from synthetic records
Tenant-free. You have three small CSV extracts for megan@contoso.example on 20 November. Step 1: convert the Intune time from local UTC+1 to UTC. Step 2: sort all rows by time. Step 3: read the story: a sign-in from an unfamiliar IP at 09:14, an inbox rule forwarding mail to an outside address two minutes later from the same IP, and Megan's own compliant laptop last seen at 08:50 from the office IP. Conclusion: the 09:14 session is likely not Megan, with high confidence because IP and timing match the rule creation. Escalate and revoke sessions.
timeUtc,source,action,ip,device
2026-11-20T08:50Z,Intune,Check-in compliant,198.51.100.20,LT-0102
2026-11-20T08:52Z,Entra sign-in,Success Outlook MFA,198.51.100.20,LT-0102
2026-11-20T09:14Z,Entra sign-in,Success OfficeHome,203.0.113.77,(none)
2026-11-20T09:16Z,Unified audit,New-InboxRule forward to ext,203.0.113.77,(none)
2026-11-20T09:30Z,Service health,No active incidents,,Ruling out an outage before touching policy
At 14:00 UTC twenty users report Teams sign-in failures. Step 1: check Service health: an active incident TM654321, users may be unable to sign in to Teams desktop, started 13:40 UTC. Step 2: sample two sign-in logs: errors are on the service side, not Conditional Access failures. Step 3: decide: no policy change; post a status update to staff with the incident ID. Step 4: after Microsoft resolves it, confirm sign-ins succeed. Evidence: incident ID in your notes and successful sign-ins afterwards.
Connect-MgGraph -Scopes "ServiceHealth.Read.All"
Get-MgServiceAnnouncementIssue -Filter "isResolved eq false" |
Select-Object Id, Service, Title, StartDateTime | Format-TableQuick reference
- Write every time in UTC; exports and APIs use UTC.
- Entra sign-in and audit logs: 7 days on Free, 30 days with P1 or P2.
- Unified audit log: Search-UnifiedAuditLog in Exchange Online PowerShell, 180 days on Audit Standard.
- Join on object ID, device ID, correlation ID; treat IP and time as weaker clues.
- Check Service health and Message center before changing policy.
- Store evidence in restricted storage, log who handled it, delete on schedule.
Common mistakes
- Mixing local time and UTC, which shifts events by hours and creates false orders of events.
- Waiting too long: sign-in logs and audit records age out, so export what you need early.
- Copying whole log exports into chat or email instead of a restricted evidence folder.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
Convert these local times (UTC+2) to UTC: 10:05, 23:40, 00:15 on 3 March.
- Exercise 2medium
Write PowerShell that exports one user's Entra directory audit events for one day to a CSV, read-only.
- Exercise 3hard
Write a one-page incident summary outline for managers that is privacy-aware, based on the first example's timeline.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Why can't I see sign-ins older than a month?
- Entra keeps sign-in logs for 30 days with P1 or P2, and 7 days on Free. Set up diagnostic settings to send them to Log Analytics or storage for longer retention.
- Is Search-UnifiedAuditLog the only way to search audit records?
- No. You can use the Audit page in the Purview portal, which runs searches in the background and lets you export results; PowerShell is handy for repeatable searches.
- Do I need permission to look at a colleague's logs?
- You need an admin role that grants log access, and many organisations also require a ticket or approval. Follow your policy and involve HR or legal for conduct cases.