Event ID 104: Event log was cleared
Written when any event log is cleared. Unlike Security 1102, which only covers the Security log, 104 is written for the System, Application and other logs.
- Channel
- System
- Logged by default
- Yes
- Written on
- Any host
- Volume
- Low
- Provider
- Microsoft-Windows-Eventlog
- Needs a SACL
- No
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| Channel | Which log was cleared (e.g. System, Application, Microsoft-Windows-PowerShell/Operational) |
| SubjectUserName | Account that cleared the log |
| SubjectDomainName | Domain or computer of that account |
| SubjectUserSid | SID of the account that cleared the log |
| BackupPath | Path of any backup taken before clearing; usually empty for a straight wipe |
Analyst notes
- 01Clearing a log is almost never routine on a server. Treat any 104 you did not expect as an incident until proven otherwise.
- 02Attackers often clear System and Application alongside Security (1102) to remove service-install and PowerShell traces; look for several clears close together.
- 03The event that records the clear is itself written after the log is emptied, so a single 104 may be all that remains of the activity before it.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'System' -FilterXPath "*[System[(EventID=104)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
- Attack signalEvent log clearingAny event log channel was cleared (provider Microsoft-Windows-Eventlog).
- InvestigationWere the logs cleared or tampered with?Check every other log for a clear
- InvestigationWhen did the attacker first get in? Building the initial access timelineTest the timeline against lost evidence
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Related events
Common questions
- What does Windows event ID 104 mean?
- Written when any event log is cleared. Unlike Security 1102, which only covers the Security log, 104 is written for the System, Application and other logs. It is written to the System log (System).
- Is event 104 logged by default?
- Yes, a default Windows installation records it.
- Where is event 104 recorded?
- In the System channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten when any event log is cleared. Unlike Security 1102, which only covers the Security log, 104 is written for the System, Application and other logs. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.