Investigate Microsoft 365 activities to identify threats
Unlock the complete study guide + 25 practice exams totaling 1,498 questions.
Bundled into the existing Microsoft Certified: Security Operations Analyst Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Three evidence sources for Microsoft 365 activity
- What a Purview Audit record captures
- Building an audit log search
- Audit search jobs, results, and export
- When an audit record can be found
- Audit search from PowerShell and the API
- Content search in the eDiscovery case model
- Searching is not collecting or preserving
- Where Microsoft 365 content lives for a search
- KeyQL syntax: how a query is parsed
- Conditions that target the right field
- Validating a search: statistics, samples, and indexing
- Turning on Microsoft Graph activity logs
- Reading a MicrosoftGraphActivityLogs record
- KQL patterns for Graph activity investigations
- Patterns and traps for Purview Audit, Content search, and Graph activity logs
Purview Audit vs Content search vs Graph activity logs
| Aspect | Purview Audit | Content search | Graph activity logs |
|---|---|---|---|
| Question it answers | Who did what to which item, and when? | What do the messages and files say, and where are they? | Which requests did an app or account send to Microsoft Graph? |
| Unit of evidence | Audit record: activity, user, date, IP address, item | In-place items: email, documents, chats, Copilot interactions | One row per HTTP request in MicrosoftGraphActivityLogs |
| Where you run it | Audit search in the Purview portal, or Search-UnifiedAuditLog | A search in an eDiscovery case or the Content Search case | KQL in the Log Analytics workspace the diagnostic setting targets |
| How far back | Up to 180 days per search; retention 180 days or 1 year by default | Current in-place content of the selected sources | Collected records still retained at the configured destination, subject to its retention settings |
| Typical delay | 60 to 90 minutes for core services, not guaranteed | Newly ingested items can take time to be indexed | Usually within 30 minutes, sometimes up to 2 hours |
| Known blind spots | Keyword search skips audit data; scoped admins see only their units | SharePoint Recycle Bin, on-premises mailboxes, partially indexed items | Requests against other tenants' resources |
| Access needed | Audit Logs or View-Only Audit Logs role | eDiscovery role plus case membership | Read access to the log destination |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- https://learn.microsoft.com/en-us/purview/audit-log-investigate-accounts
- https://learn.microsoft.com/en-us/purview/audit-solutions-overview
- https://learn.microsoft.com/en-us/purview/edisc
- https://learn.microsoft.com/en-us/graph/microsoft-graph-activity-logs-overview
- https://learn.microsoft.com/en-us/defender-xdr/incidents-overview
- https://learn.microsoft.com/en-us/defender-xdr/m365d-action-center
- https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-overview
- https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-graphapiauditevents-table
- https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/microsoftgraphactivitylogs
- https://learn.microsoft.com/en-us/purview/audit-search
- https://learn.microsoft.com/en-us/purview/audit-log-export-records
- https://learn.microsoft.com/en-us/purview/audit-log-activities
- https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-schema
- https://learn.microsoft.com/en-us/purview/audit-log-retention-policies
- https://learn.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog
- https://learn.microsoft.com/en-us/purview/ediscovery
- https://learn.microsoft.com/en-us/purview/edisc-search-query
- https://learn.microsoft.com/en-us/purview/edisc-permissions
- https://learn.microsoft.com/en-us/purview/edisc-search-results
- https://learn.microsoft.com/en-us/purview/edisc-hold-create
- https://learn.microsoft.com/en-us/purview/edisc-search-teams
- https://learn.microsoft.com/en-us/purview/edisc-search-mailboxes
- https://learn.microsoft.com/en-us/purview/edisc-keyword-query-language
- https://learn.microsoft.com/en-us/purview/edisc-condition-builder
- https://learn.microsoft.com/en-us/purview/edisc-search-sites
- https://learn.microsoft.com/en-us/purview/edisc-ref-advanced-indexing
- https://learn.microsoft.com/en-us/purview/edisc-settings-search-analytics
- https://learn.microsoft.com/en-us/entra/identity-platform/access-token-claims-reference