Clearing Windows Event Logsedit

Identifies attempts to clear or disable Windows event log stores using Windows wevetutil command. This is often done by attackers in an attempt to evade detection or destroy forensic evidence on a system.

Rule type: eql

Rule indices:

  • winlogbeat-*
  • logs-windows.*

Severity: low

Risk score: 21

Runs every: 5m

Searches indices from: now-9m (Date Math format, see also Additional look-back time)

Maximum alerts per execution: 100

References: None


  • Elastic
  • Host
  • Windows
  • Threat Detection
  • Defense Evasion

Version: 10

Rule authors:

  • Elastic

Rule license: Elastic License v2

Rule queryedit

process where event.type in ("process_started", "start") and
  ( : "wevtutil.exe" or == "wevtutil.exe") and
    process.args : ("/e:false", "cl", "clear-log") or : "powershell.exe" and process.args : "Clear-EventLog"