Alerting

CPU Utilization

Saikat001
Explorer

value.PNG


I am trying to find out cpu utilization by process. value of Cpu utilization is coming as 100% and below, which is absolutely fine. but for the processes, it exceeding 100% value, i understand, its happening due to multiple cores configured. is there any way i can fetch it in (less than equal to 100 value).

Also i thought of dividing the values by cores (eg: 890/9  , 626/7). if i use "case" or "if" this will have multiple statements (for eg: process utilization till 4200).

Is there an easy way to perform this?

can i acheive it by integrating python script in alert, i know this can be done, but can someone help me with the process(unaware of integrating custom commands)?

process query i am running

index=perf_process object=Process instance!=_Total instance!=Idle
| fields _time host counter instance Value
| search counter="% Processor Time"
| stats avg(Value) as avg by instance host _time
| stats sum(avg) by _time host

@splunk

Labels (3)
0 Karma
Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...