<?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: What is pctIdle in splunk index os? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453547#M8267</link>
    <description>&lt;P&gt;Brilliant Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 10:28:39 GMT</pubDate>
    <dc:creator>Shashank_87</dc:creator>
    <dc:date>2019-05-08T10:28:39Z</dc:date>
    <item>
      <title>What is pctIdle in splunk index os?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453545#M8265</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;What is this field pctIdle which automatically gets extracted when we use multikv command?&lt;BR /&gt;
Is it the avg cpu load?&lt;BR /&gt;
Is it the percentage of time when CPU was idle?&lt;BR /&gt;
If i need to calculate the CPU utilisation % of my 2 host, which query and sourcetype should i use from the below  2 queries?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. index=os sourcetype=top host="host1" OR host="host2" 
| timechart span=5m values(pctCPU) by host

2.index=os sourcetype=cpu host="host1" OR host="host2" 
| eval Percent_CPU_Load = 100 - pctIdle 
| timechart avg(Percent_CPU_Load) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Appreciate if someone can help&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 21:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453545#M8265</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2018-09-10T21:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is pctIdle in splunk index os?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453546#M8266</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/108973"&gt;@Shashank_87&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;pctIdle&lt;/CODE&gt; or Percent Idle Time is percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request. Have a look at this to see a comparison of commands used : &lt;A href="https://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html" target="_blank"&gt;https://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you need to calculate CPU utilisation % of hosts, use &lt;CODE&gt;eval Percent_CPU_Usage = 100 - pctIdle&lt;/CODE&gt; , see &lt;A href="http://docs.splunk.com/Documentation/SplunkLight/7.0.1/Examples/Createsearch" target="_blank"&gt;Percent_CPU_Usage&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;On another note, do you have &lt;CODE&gt;pctCPU&lt;/CODE&gt; field? As far as I have seen, the headers for CPU utilization are &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CPU    pctUser    pctNice  pctSystem  pctIowait    pctIdle
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which are &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CPU : CPU number

%user: Percentage of CPU utilization that occurred while executing at the user level (application).

%nice: Percentage of CPU utilization that occurred while executing at the user level with nice priority.

%system: Percentage of CPU utilization that occurred while executing at the system level (kernel).

%iowait: Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.

%idle: Percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453546#M8266</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T21:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is pctIdle in splunk index os?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453547#M8267</link>
      <description>&lt;P&gt;Brilliant Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 10:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-pctIdle-in-splunk-index-os/m-p/453547#M8267</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-05-08T10:28:39Z</dc:date>
    </item>
  </channel>
</rss>

