Forum Discussion
SebasL
Feb 13, 2020Copper Contributor
Group similar Process name in LogsAnalytics
Hi, I am looking for a query where I can get % Process CPU for specific Process. My main concern is that I would like to group some of them. For instance: "ZSAService", "ZSATunnel" and "ZSATray" so...
- Feb 13, 2020
If you wanted two groups (ZSA and non-ZSA) that would be:
Perf | where Computer contains "sl2" | where ObjectName == "Process" and CounterName == "% Processor Time" | where (InstanceName contains "Sysmon" or InstanceName contains "CSFalconSer" or InstanceName contains "ZSA" ) | summarize Zscaler = avgif(CounterValue, InstanceName startswith "ZSA") ,theOthers = avgif(CounterValue, InstanceName !startswith "ZSA") by bin(TimeGenerated, 1d) | render timechartI'll need to think more about this, unless anyone else has an idea?
Thanks
CliveWatson
Feb 13, 2020Former Employee
If you wanted two groups (ZSA and non-ZSA) that would be:
Perf
| where Computer contains "sl2"
| where ObjectName == "Process" and CounterName == "% Processor Time"
| where (InstanceName contains "Sysmon" or InstanceName contains "CSFalconSer" or InstanceName contains "ZSA" )
| summarize Zscaler = avgif(CounterValue, InstanceName startswith "ZSA")
,theOthers = avgif(CounterValue, InstanceName !startswith "ZSA")
by bin(TimeGenerated, 1d)
| render timechart
I'll need to think more about this, unless anyone else has an idea?
Thanks