imProcessCreate | where (((TargetProcessName endswith "\\wevtutil.exe" or TargetProcessFileOriginalName =~ "wevtutil.exe") and (TargetProcessCommandLine contains "clear-log " or TargetProcessCommandLine contains " cl " or TargetProcessCommandLine contains "set-log " or TargetProcessCommandLine contains " sl " or TargetProcessCommandLine contains "lfn:")) or ((TargetProcessName endswith "\\powershell.exe" or TargetProcessName endswith "\\powershell_ise.exe" or TargetProcessName endswith "\\pwsh.exe") and ((TargetProcessCommandLine contains "Clear-EventLog " or TargetProcessCommandLine contains "Remove-EventLog " or TargetProcessCommandLine contains "Limit-EventLog " or TargetProcessCommandLine contains "Clear-WinEvent ") or (TargetProcessCommandLine contains "Eventing.Reader.EventLogSession" and TargetProcessCommandLine contains "ClearLog") or (TargetProcessCommandLine contains "Diagnostics.EventLog" and TargetProcessCommandLine contains "Clear"))) or ((TargetProcessName endswith "\\powershell.exe" or TargetProcessName endswith "\\powershell_ise.exe" or TargetProcessName endswith "\\pwsh.exe" or TargetProcessName endswith "\\wmic.exe") and TargetProcessCommandLine contains "ClearEventLog")) and (not((((ParentProcessName in~ ("C:\\Windows\\SysWOW64\\msiexec.exe", "C:\\Windows\\System32\\msiexec.exe")) or (ActingProcessName in~ ("C:\\Windows\\SysWOW64\\msiexec.exe", "C:\\Windows\\System32\\msiexec.exe"))) and TargetProcessCommandLine contains " sl ")))