Alerting

How to edit my search for an alert to be triggered if a host's CPU load percentage exceeds 60%?

xuanyun
Path Finder

We use the following search to obtain information on Percent_CPU_Load.

index=os sourcetype=cpu | multikv fields pctIdle | eval Percent_CPU_Load = 100 - pctIdle | timechart avg(Percent_CPU_Load) by host

The search results show the Percent_CPU_Load of all the hosts.

I want an alert to be triggered when Percent_CPU_Load if any one of the hosts exceeds 60%.
How do I set the alert to meet the conditions above?

Tags (4)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Try this search:

index=os sourcetype=cpu | multikv fields pctIdle | eval Percent_CPU_Load = 100 - pctIdle | stats avg(Percent_CPU_Load) as avg_cpu by host | where avg_cpu > 60

Set the alert to trigger when there is more than zero results.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Try this search:

index=os sourcetype=cpu | multikv fields pctIdle | eval Percent_CPU_Load = 100 - pctIdle | stats avg(Percent_CPU_Load) as avg_cpu by host | where avg_cpu > 60

Set the alert to trigger when there is more than zero results.

xuanyun
Path Finder

Thank you very much!
That's very kind of you!

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...