Audit log search should be turned on in Microsoft 365
This check looks at whether the unified audit log of your Microsoft 365 tenant is switched on and searchable. The safe setting is that audit log ingestion is enabled, so user and admin activity is recorded and can be searched later.
Why it matters
The audit log is where Microsoft 365 records sign-ins to services, file access, mailbox actions and admin changes. After an incident, such as a hijacked mailbox or a mass file download, it is the first thing investigators open. If ingestion is off, the events from that period are never stored and cannot be recovered afterwards.
Microsoft documents the setting in Turn auditing on or off. Auditing is on by default for new organizations, but it can be switched off, so it is worth confirming.
How to check it yourself
In the Microsoft Purview portal open Audit. If auditing is off, the page offers a button to start recording user and admin activity. From PowerShell, connect to Exchange Online with a read-only role and run:
Connect-ExchangeOnline
Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabledTrue means auditing is on. False means it is off and the check fails. The command only reads the configuration.
How to fix it
In the Purview portal, open Audit and choose Start recording user and admin activity. You need an account with the right audit role, for example in the Organization Management group.
Scripted version. It changes your tenant, so ConfigCobra never runs it for you:
Connect-ExchangeOnline
Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $trueMicrosoft notes that it can take some time before the change takes effect. Search the log again afterwards to confirm that new events appear.
A quick test is to sign in as a test user, open a file, and search the audit log for that user activity a little later. If the file access shows up, ingestion works end to end. If it does not, recheck UnifiedAuditLogIngestionEnabled and wait before searching again.
What changes when you fix it
Nobody loses access to anything and no sign-in behaves differently. The people affected are the security and compliance staff, who gain a searchable history, and the administrators who must decide who may search it.
- Activity from the moment of the change onward is recorded. Events from the time it was off are not recovered.
- Audit records include user names and the files or mailboxes they touched, so give the audit roles only to people who need them.
- How long records are kept depends on your Microsoft 365 licence and retention policies, so check what applies to your tenant.
Agree who holds the audit roles before you enable it, then run a test search to confirm events arrive.
Included in
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Microsoft 365 Foundations v7.0.0 | 3.1.1 | E3 Level 1 |
Go further
- Microsoft Purview5 controls in this section
- CIS Microsoft 365 Foundations v7.0.0160 controls
- CIS Microsoft 365 Foundations checklistEvery control in one list, as CSV
- RemediationSee what a fix changes in your tenant before you apply it, then use the generated script
- Monitoring & DriftScheduled scans, drift detection and email alerts when a control regresses
Check this on your Microsoft 365
ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.