<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CPU alert when it exceeds a threshold in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45443#M515</link>
    <description>&lt;P&gt;thanks all for yours answer.&lt;BR /&gt;
This thing worked for me by piping the data out --&amp;gt;&lt;BR /&gt;
|rename avg(cpu) as cpualert|where cpualert &amp;gt;35&lt;/P&gt;

&lt;P&gt;Here's the complete query that worked for me -&lt;/P&gt;

&lt;P&gt;index=os  host=* sourcetype=cpu | lookup chipotl fqdn as host | search application_name="New apps*" AND physical_environment_name="System T*" AND state="LIVE"| multikv fields pctUser,pctSystem,pctIowait,pctIdle,application_name | search all |sort "Sort"   |eval cpu=100-pctIdle|stats avg(cpu) by host,application_name|rename avg(cpu) as cpualert|where cpualert &amp;gt;35&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:38:55 GMT</pubDate>
    <dc:creator>sunilsk1</dc:creator>
    <dc:date>2020-09-28T14:38:55Z</dc:date>
    <item>
      <title>CPU alert when it exceeds a threshold</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45440#M512</link>
      <description>&lt;P&gt;index=os  host=* sourcetype=cpu | lookup chipotl fqdn as host | search application_name="New Apps*" AND physical_environment_name="SystemTestWest" AND state="LIVE"| multikv fields pctUser,pctSystem,pctIowait,pctIdle,application_name | search all |sort "Sort"   |eval Percent_CPU_Load=100-pctIdle| eval application=application_name |stats avg(Percent_CPU_Load) by host,application_name | where Percent_CPU_Load &amp;gt; 10&lt;/P&gt;

&lt;P&gt;I want the results where the CPU is more then 10% . The above Query isn't returning any result Set.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45440#M512</guid>
      <dc:creator>sunilsk1</dc:creator>
      <dc:date>2020-09-28T14:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: CPU alert when it exceeds a threshold</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45441#M513</link>
      <description>&lt;P&gt;The first thing I'd recommend is doing a pipe to table and break this thing down to make sure you're getting the numbers you think you are getting. &lt;/P&gt;

&lt;P&gt;what is this part for - '| search all'?  I'm guessing if you do the follow below you may not have any data.&lt;/P&gt;

&lt;P&gt;index=os host= sourcetype=cpu | lookup chipotl fqdn as host | search application_name="New Apps" AND physical_environment_name="SystemTestWest" AND state="LIVE"| multikv fields pctUser,pctSystem,pctIowait,pctIdle,application_name | search all | table pctIdle, application_name&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45441#M513</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2020-09-28T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: CPU alert when it exceeds a threshold</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45442#M514</link>
      <description>&lt;P&gt;try at the end with:&lt;/P&gt;

&lt;P&gt;stats avg(Percent_CPU_Load) as cpu_load by host,application_name | where cpu_load &amp;gt; 10&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45442#M514</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2020-09-28T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: CPU alert when it exceeds a threshold</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45443#M515</link>
      <description>&lt;P&gt;thanks all for yours answer.&lt;BR /&gt;
This thing worked for me by piping the data out --&amp;gt;&lt;BR /&gt;
|rename avg(cpu) as cpualert|where cpualert &amp;gt;35&lt;/P&gt;

&lt;P&gt;Here's the complete query that worked for me -&lt;/P&gt;

&lt;P&gt;index=os  host=* sourcetype=cpu | lookup chipotl fqdn as host | search application_name="New apps*" AND physical_environment_name="System T*" AND state="LIVE"| multikv fields pctUser,pctSystem,pctIowait,pctIdle,application_name | search all |sort "Sort"   |eval cpu=100-pctIdle|stats avg(cpu) by host,application_name|rename avg(cpu) as cpualert|where cpualert &amp;gt;35&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45443#M515</guid>
      <dc:creator>sunilsk1</dc:creator>
      <dc:date>2020-09-28T14:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: CPU alert when it exceeds a threshold</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45444#M516</link>
      <description>&lt;P&gt;the next issue , I have scheduled the alert and the complete result along with Search query is sent to all my Users.&lt;BR /&gt;
Is there way that I can send only the Search results and hide the Query and all other log details.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 06:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45444#M516</guid>
      <dc:creator>sunilsk1</dc:creator>
      <dc:date>2013-08-26T06:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: CPU alert when it exceeds a threshold</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45445#M517</link>
      <description>&lt;P&gt;the next issue , I have scheduled the alert and the complete result along with Search query is sent to all my Users.&lt;BR /&gt;
Is there way that I can send only the Search results and hide the Query and all other log details.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 06:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/CPU-alert-when-it-exceeds-a-threshold/m-p/45445#M517</guid>
      <dc:creator>sunilsk1</dc:creator>
      <dc:date>2013-08-26T06:56:15Z</dc:date>
    </item>
  </channel>
</rss>

