eventtype=wineventlog_index_windows eventtype="wineventlog_common"
| eval Host=if(isNull(host),Host,host)
| fields Host,LogName,EventCode
$Time.earliest$$Time.latest$
eventtype=perfmon_index_windows eventtype="perfmon_windows" object=* counter=*
| eval Host=if(isNull(host),Host,host)
| fields Host,object,counter
$Time.earliest$$Time.latest$Windows Events| stats dc(Host) as countWindows Events| stats dc(LogName) as countWindows Events
| stats count by EventCode, LogName
| stats count
Windows Performance Counters| stats dc(Host) as countWindows Performance Counters| stats dc(object) as countWindows Performance Counters | stats dc(counter) as count
Sourceseventtype=windows_index_windows OR eventtype=wineventlog_index_windows OR eventtype=perfmon_index_windows | fields source | stats count by source | rename source as Source,count as Count$Time.earliest$$Time.latest$
Sourcetypeseventtype=windows_index_windows OR eventtype=wineventlog_index_windows OR eventtype=perfmon_index_windows | fields sourcetype | stats count by sourcetype | rename sourcetype as Sourcetype,count as Count$Time.earliest$$Time.latest$
Hostseventtype=windows_index_windows OR eventtype=wineventlog_index_windows OR eventtype=perfmon_index_windows | fields host | stats count by host | rename host as Host,count as Count$Time.earliest$$Time.latest$