<?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 Utilization Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96046#M24793</link>
    <description>&lt;P&gt;Use Monitoring Console builtin since Splunk 6.5. It is a great feature.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.0/DMC/DMCoverview"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.0/DMC/DMCoverview&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 23:43:14 GMT</pubDate>
    <dc:creator>jrprez1804</dc:creator>
    <dc:date>2017-11-22T23:43:14Z</dc:date>
    <item>
      <title>CPU Utilization Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96044#M24791</link>
      <description>&lt;P&gt;I am using this query to Fetch CPU Utilization details&lt;/P&gt;

&lt;P&gt;index=os sourcetype="cpu" | multikv forceheader=1 | eval human_readable_time=strftime(_time, "%Y-%d-%m %H:%M:%S") | eval percentageCPUUtil = 100 - pctIdle |  table human_readable_time,host,percentageCPUUtil,pctIdle&lt;/P&gt;

&lt;P&gt;But for particular time and for the same host , we are getting multiple rows, Below is the ouput&lt;/P&gt;

&lt;P&gt;human_readable_time,host,percentageCPUUtil,pctIdle&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,2.16,97.84&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,1.00,99.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.99,99.01&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,5.94,94.06&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,2.00,98.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,1.98,98.02&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,3.00,97.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,9.00,91.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,28.00,72.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;BR /&gt;
2012-19-03 03:44:58,edb1crsapppex45,0.00,100.00&lt;/P&gt;

&lt;P&gt;If we notice the output, for the same time and same host, we are getting multiple Rows. So which row should be assume is the Percentage CPU Utilization. &lt;/P&gt;

&lt;P&gt;But if we add | search CPU=all | in the query, then output we are getting is fine.&lt;/P&gt;

&lt;P&gt;Kindly Suggest. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96044#M24791</guid>
      <dc:creator>kuldeepsingh99</dc:creator>
      <dc:date>2020-09-28T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96045#M24792</link>
      <description>&lt;P&gt;Probably your host has a multicore CPU or several CPUs so in this case you have utilization for each core. Like a solution you can add core number to output and calculate utilization for each core or calculate average value of all rows or use just CPU=all&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 09:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96045#M24792</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2012-03-20T09:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96046#M24793</link>
      <description>&lt;P&gt;Use Monitoring Console builtin since Splunk 6.5. It is a great feature.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.0/DMC/DMCoverview"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.0/DMC/DMCoverview&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 23:43:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CPU-Utilization-Query/m-p/96046#M24793</guid>
      <dc:creator>jrprez1804</dc:creator>
      <dc:date>2017-11-22T23:43:14Z</dc:date>
    </item>
  </channel>
</rss>

