Investigate a Cleared Windows Security Log
Before you begin
- Applies to:Authorized review of a Windows Security log that may have been cleared.
- Where to start:Start on the affected host with approved log access and compare with a healthy peer and upstream collector. Use elevated PowerShell 7 or later when required.
- What you need:Have collector read access. Record the last good event and first missing event in UTC.
Guide tools
Before You Start
Use an affected host with approved Security log read access, typically an elevated PowerShell 7+ session, and read access to the upstream collector. Start with the affected host and a healthy peer. Record the last good and first missing event in UTC.
Investigation Steps
Bracket the gap
Start hereRecord the host’s canonical name, alert timestamp, collector, channel, and the first and last records you can find. Check whether the apparent gap is confined to particular event IDs or affects every Security event. Verify the SIEM time picker and search window.
Read local retention and oldest record
Compare the current log mode, size, and record count to the configured maximum. If rollover is allowed, an old query window can fall outside local retention even when collection worked correctly. An empty log requires checking access errors and policy before drawing conclusions.
Get-WinEvent -ListLog Security -ErrorAction Stop | Select-Object LogMode, RecordCount, FileSize, MaximumSizeInBytesGet-WinEvent -LogName Security -Oldest -MaxEvents 1 -ErrorAction Stop | Select-Object TimeCreated, Id, RecordIdLook for direct clearing evidence
Search around the gap, adjusting the example lookback to include it. Event 1102 indicates the audit log was cleared. Event 1104 indicates it filled, and 1100 records the event logging service shutting down. No matching events can be a genuine result. Access denied or an unavailable channel means the query is inconclusive.
Get-WinEvent -FilterHashtable @{ LogName = 'Security' Id = 1100, 1102, 1104 StartTime = (Get-Date).AddDays(-3)} -ErrorAction Stop | Select-Object TimeCreated, Id, RecordId, MessageIdentify the clearing subject and corroborate it
For 1102, preserve the event XML and review the subject SID, account, and logon ID. Correlate with a retained sign-in on the same host and check the change record. A subject account identifies the security context. Establish which person or process used it before attributing intent.
Compare the collector’s view
Search the same host and UTC interval in the collector. A forwarded 1102 can survive even when its local copy has rolled out. If local Security events exist during the collector gap, check subscription filters, source connectivity, and collector or ingestion health.
Verify coverage and document any loss
VerifyAfter an approved repair, follow an ordinary authorized sign-in through the local log and collector. Record both timestamps and the actual gap. Note any missing interval that remains unrecoverable and preserve the records from other sources that cover it.
Interpret the Results
| Finding | Next action |
|---|---|
| 1102 and an approved change match | Record the scope and verify forwarding returned. |
| 1102 with unexplained subject | Escalate as a potential incident and retain the event and adjacent records. |
| Local events exist during the SIEM gap | Investigate collection before changing local retention. |
References
Your feedback keeps these production procedures accurate and battle-tested.