<?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: help for monitoring a CPU abnormally charge following lasting conditions in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377251#M3230</link>
    <description>&lt;P&gt;hi david&lt;/P&gt;

&lt;P&gt;when I add bin _time J have the message : the specifier bin_time is invalid. It must be in form  (). For example : max(size)&lt;BR /&gt;
and I want to display ten events (host) in my timechart but only the last 10 events (host)&lt;BR /&gt;
with head 10 i have ten events but not the last.....&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:37:59 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2020-09-30T00:37:59Z</dc:date>
    <item>
      <title>help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377247#M3226</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;I use the search below in order to monitore the processes which use more than 80% of CPU&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;index="TUTU" sourcetype="perfmonmk:process" 
| where process_cpu_used_percent&amp;gt;80 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I want to monitore only the processes &amp;gt; 80% of CPU which last at least one minutes or more and to display it in a timechart&lt;BR /&gt;could you help me please??&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 02:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377247#M3226</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-06-06T02:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377248#M3227</link>
      <description>&lt;P&gt;Hey@jip31,&lt;/P&gt;

&lt;P&gt;Can you try using avg(process_cpu_used_percent) and use bin _time span=1m and then try using where.&lt;BR /&gt;
Let me know if this helps!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377248#M3227</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2020-09-30T00:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377249#M3228</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
thanks&lt;BR /&gt;
i have done this but i dont understand how to use bin_time?&lt;BR /&gt;
I would also like to have only the last 10 events&lt;BR /&gt;
    index="test" sourcetype="perfmonmk:process" &lt;BR /&gt;
    | timechart   span=1m avg(process_cpu_used_percent) as process_cpu_used_percent by host where process_cpu_used_percent&amp;gt;80 limit=10&lt;BR /&gt;
could you help me pelase??&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377249#M3228</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-30T00:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377250#M3229</link>
      <description>&lt;P&gt;Hi @jip31,&lt;/P&gt;

&lt;P&gt;Nice index name ^^&lt;/P&gt;

&lt;P&gt;This query is correct : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="TUTU" sourcetype="perfmonmk:process" 
| timechart span=1m avg(process_cpu_used_percent) as process_cpu_used_percent by host where process_cpu_used_percent&amp;gt;80 limit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to use &lt;CODE&gt;bucket&lt;/CODE&gt; you can use it like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="TUTU" sourcetype="perfmonmk:process" | bucket _time span=1m | stats avg(process_cpu_used_percent) as process_cpu_used_percent by host,_time | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 07:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377250#M3229</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-20T07:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377251#M3230</link>
      <description>&lt;P&gt;hi david&lt;/P&gt;

&lt;P&gt;when I add bin _time J have the message : the specifier bin_time is invalid. It must be in form  (). For example : max(size)&lt;BR /&gt;
and I want to display ten events (host) in my timechart but only the last 10 events (host)&lt;BR /&gt;
with head 10 i have ten events but not the last.....&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377251#M3230</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-30T00:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377252#M3231</link>
      <description>&lt;P&gt;ohhhh, sorry! hahah it's actually &lt;CODE&gt;bucket&lt;/CODE&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="TUTU" sourcetype="perfmonmk:process" | bucket _time span=1m | stats avg(process_cpu_used_percent) as process_cpu_used_percent by host,_time | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as for the last 10 you can use &lt;CODE&gt;reverse&lt;/CODE&gt; : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="TUTU" sourcetype="perfmonmk:process" | bucket _time span=1m | stats avg(process_cpu_used_percent) as process_cpu_used_percent by host,_time|reverse | head 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 May 2019 09:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377252#M3231</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-20T09:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377253#M3232</link>
      <description>&lt;P&gt;thanks david&lt;BR /&gt;
last question&lt;BR /&gt;
my final search is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="tutu" sourcetype="perfmonmk:process" 
| where process_cpu_used_percent&amp;gt;80 
| bucket _time span=1m 
| stats avg(process_cpu_used_percent) as process_cpu_used_percent by host, _time 
| eval process_cpu_used_percent =round(process_cpu_used_percent, 1)." %" 
| table _time host process_cpu_used_percent 
| dedup host 
| reverse 
| head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;do you think its correct??&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 10:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377253#M3232</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-05-20T10:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377254#M3233</link>
      <description>&lt;P&gt;Looks good !&lt;/P&gt;

&lt;P&gt;But I think you want to use your 80% filter after the stats that way it gets applied on the average, this should do  : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="tutu" sourcetype="perfmonmk:process" 
 | bucket _time span=1m 
 | stats avg(process_cpu_used_percent) as process_cpu_used_percent by host, _time 
 | where process_cpu_used_percent&amp;gt;80 
 | eval process_cpu_used_percent =round(process_cpu_used_percent, 1)." %" 
 | dedup host 
 | reverse 
 | head 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 May 2019 10:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377254#M3233</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-20T10:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: help for monitoring a CPU abnormally charge following lasting conditions</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377255#M3234</link>
      <description>&lt;P&gt;please upvote comments and accept answer if it was helpful &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 10:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/help-for-monitoring-a-CPU-abnormally-charge-following-lasting/m-p/377255#M3234</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-20T10:53:36Z</dc:date>
    </item>
  </channel>
</rss>

