<?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: How to calculate the total CPU by top result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-total-CPU-by-top-result/m-p/49357#M11830</link>
    <description>&lt;P&gt;The &lt;CODE&gt;multikv&lt;/CODE&gt; command helps you to split the tabular formatted events in to separate ones.&lt;/P&gt;

&lt;P&gt;You can use a query like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=ps | multikv | stats sum(pctCPU) as sumPctCPU by _time,host | timechart span=1m avg(sumPctCPU) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Feb 2011 18:38:24 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2011-02-24T18:38:24Z</dc:date>
    <item>
      <title>How to calculate the total CPU by top result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-total-CPU-by-top-result/m-p/49356#M11829</link>
      <description>&lt;P&gt;Hi, all,
 I am a newbie in splunk. I have encounter a problem when play around with *NIX app in Splunk.
 I am going to calculate the total CPU usage in each minutes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   PID  USER              PR    NI    VIRT     RES     SHR   S  pctCPU  pctMEM       cpuTIME  COMMAND
 32206  root              15     0    298m    129m     10m   S    19.3     0.8      15:46.08  splunkd
 14559  root              15     0   13016    1224     708   R     3.9     0.0       0:00.03  top
     1  root              15     0   10348     684     576   S     0.0     0.0       0:04.85  init
     2  root              RT    -5       0       0       0   S     0.0     0.0       0:00.08  migration/0
     3  root              34    19       0       0       0   S     0.0     0.0       0:00.00  ksoftirqd/0
     4  root              RT    -5       0       0       0   S     0.0     0.0       0:00.00  watchdog/0
     5  root              RT    -5       0       0       0   S     0.0     0.0       0:00.13  migration/1
     6  root              34    19       0       0       0   S     0.0     0.0       0:00.00  ksoftirqd/1
     7  root              RT    -5       0       0       0   S     0.0     0.0       0:00.00  watchdog/1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know how to extract the pctCPU value. 
 Any hint?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;Regards,
Alister&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2011 12:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-total-CPU-by-top-result/m-p/49356#M11829</guid>
      <dc:creator>wisespot</dc:creator>
      <dc:date>2011-02-24T12:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the total CPU by top result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-total-CPU-by-top-result/m-p/49357#M11830</link>
      <description>&lt;P&gt;The &lt;CODE&gt;multikv&lt;/CODE&gt; command helps you to split the tabular formatted events in to separate ones.&lt;/P&gt;

&lt;P&gt;You can use a query like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=ps | multikv | stats sum(pctCPU) as sumPctCPU by _time,host | timechart span=1m avg(sumPctCPU) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Feb 2011 18:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-total-CPU-by-top-result/m-p/49357#M11830</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-02-24T18:38:24Z</dc:date>
    </item>
  </channel>
</rss>

