Event ID 104: event log cleared

Event ID 104, "The log file was cleared", is written to the System log whenever a Windows event log other than Security is cleared, naming the log and the account that cleared it; clearing the Security log produces 1102 instead.

System logLog tamperingChecked 2 December 2026

What event 104 records

Windows keeps more than a hundred event logs: System, Application, PowerShell, Remote Desktop, Task Scheduler, Defender and many more. Clearing any of them, from Event Viewer, with wevtutil cl, or with PowerShell's Clear-EventLog or wevtutil wrappers, writes a 104 to the System log. The Security log is the exception: clearing it writes 1102 into the fresh Security log.

The event carries the account name and domain that cleared the log and the channel that was cleared. When the System log itself is cleared, its 104 becomes the first record in the new, empty System log. The event log service writes it regardless of any audit policy, so it is always there unless the System log was cleared again afterwards.

The patterns that matter

PatternWhat it usually means
One 104 for a log an administrator works with, during working hoursRoutine maintenance or troubleshooting; confirm with the person
Dozens of 104s in the same second, one per logA loop clearing every log: for /F "tokens=*" %1 in ('wevtutil el') do wevtutil cl "%1", a common ransomware and intrusion step
104 for PowerShell/Operational, TerminalServices or Task Scheduler logs onlyTargeted clean-up of the logs that recorded the attacker's activity
A 1102 and 104s togetherSecurity and other logs cleared in one action
A System log that starts with a 104 at a recent timeThe System log itself was cleared; everything older is gone from this file

Record the time of every clearing. It sets the earliest point from which that log can be trusted, and it is often the moment the attacker finished.

What survives a cleared log

Clearing removes the records from the live log file, not from everywhere:

  • Forwarded copies. Logs sent to a SIEM or Windows Event Forwarding before the clearing are unaffected.
  • Volume Shadow Copies. Earlier versions of the .evtx files in C:\Windows\System32\winevt\Logs often survive in shadow copies, unless the attacker deleted those too (vssadmin, wmic shadowcopy).
  • Unallocated space. Old EVTX chunks and records can be carved from free disk space and the page file with tools such as EVTXtract or bulk_extractor.
  • Other artifacts. Prefetch, Amcache, SRUM, the USN Journal and the registry record execution, file activity and persistence independently of the event logs.
  • The clearing itself. wevtutil.exe in Prefetch, a 4688 or a 4104 for Clear-EventLog record the clearing from outside the cleared log.

Event 104 fields

The fields an investigator reads first, what they mean, and where Arcsentry stores them.

FieldMeaningArcsentry field
SubjectUserName, SubjectDomainNameThe account that cleared the log.user_name, user_domain
ChannelThe log that was cleared, for example Microsoft-Windows-PowerShell/Operational.$channel
BackupPathA backup file, if the log was saved before clearing (usually empty).$backuppath

What event 104 proves, and what it does not

It shows

  • That this log was cleared at this time, by this account.
  • That records in this log from before the clearing are missing from the live file.

It does not show

  • What the cleared records contained. Recover them from forwarded copies, shadow copies or carving.
  • That the person behind the account cleared it. Stolen credentials produce the same record.
  • That no other logs were cleared. A later clearing of the System log removes earlier 104s.

Attacker activity it reveals

Clear everything

Ransomware and many intrusion playbooks clear every event log with a wevtutil loop as one of their last steps, producing a burst of 104s and a 1102. MITRE ATT&CK T1070.001

Selective clean-up

Clearing only the PowerShell, Remote Desktop or Task Scheduler logs removes the most detailed records of hands-on activity while leaving the Security log, and its 1102, untouched. MITRE ATT&CK T1070.001

Deleting files instead

Stopping the event log service and deleting .evtx files produces no 104. Look for event log service stops (1100, 7036), missing .evtx files and gaps in record numbers. MITRE ATT&CK T1070.001

Finding event 104 in Arcsentry

Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. System log records are the event type evtx_system. In Hunt, with that event type selected:

filter event_code == "104"
derive {cleared = $channel, by = user_name}
select {timestamp, by, cleared}
sort {timestamp}

Every log clearing on the host, in order, with who did it and which log. Run it next to the 1102 query for the Security log.

Or ask in plain English, for example "show event 104 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.

Related event IDs

All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.

Frequently asked

What does event ID 104 mean?

An event log was cleared. The System log records the account that cleared it and which log it was. It covers every log except Security, which records its own clearing as 1102.

What is the difference between event ID 104 and 1102?

1102 is written to the Security log when the Security log is cleared. 104 is written to the System log when any other log is cleared, including the System log itself.

Can cleared Windows event logs be recovered?

Often, in part. Check forwarded copies in a SIEM, older .evtx files in Volume Shadow Copies, and EVTX records carved from unallocated space or the page file.

How do attackers clear event logs?

Most use wevtutil cl in a loop over every log, PowerShell Clear-EventLog, or Event Viewer. Some stop the event log service and delete the .evtx files, which writes no 104.

Sources

  • Microsoft Learn: wevtutil; Clear-EventLog
  • MITRE ATT&CK: T1070.001 Clear Windows Event Logs

Checked 2 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.

Find event 104 across every host in minutes.

Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.

Request a trial