Skip to content
WETNav
SystemLog Integrity

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.

ChannelWhich log was cleared (e.g. System, Application, Microsoft-Windows-PowerShell/Operational)
SubjectUserNameAccount that cleared the log
SubjectDomainNameDomain or computer of that account
SubjectUserSidSID of the account that cleared the log
BackupPathPath of any backup taken before clearing; usually empty for a straight wipe
Have one of these events? Paste it into the decoder

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.

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.

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.

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. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.