<?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: Splunk CPU Usage Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652699#M225571</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259130"&gt;@sheepIT&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:21:35 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-08-01T12:21:35Z</dc:date>
    <item>
      <title>Splunk CPU Usage Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652406#M225494</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am relatively new to Splunk, having just inherited a whole Splunk environment due to our former Splunk Admin leaving. I'm having issues with setting up a dashboard that returns the top 10 windows hosts with the most CPU usage, essentially I need a query that would calculate and return that.&amp;nbsp; I can find the windows hosts under the _internal and perfmon indexes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to find and customize this query:&lt;/P&gt;&lt;P&gt;index=perfmon object=Process counter="%_Processor_Time" host=WINSERVER1 earliest=-2m latest=now NOT instance IN(_Total,Idle,System)&lt;BR /&gt;| stats perc90(Value) as Value by host&lt;BR /&gt;| top limit=10 Value by host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it returns all the hosts in the index, and not the top 10 hosts with the highest CPU usage. Also comparing the CPU usage, it seems like it is incorrect, as when I open task manager and compare, they are noticeably different, so it makes me wonder if my calculation is off? Or what calculation would be most accurate in determining the CPU usage of individual hosts?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652406#M225494</guid>
      <dc:creator>sheepIT</dc:creator>
      <dc:date>2023-07-28T17:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CPU Usage Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652434#M225503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259130"&gt;@sheepIT&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have two solutions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the top command,&lt;/LI&gt;&lt;LI&gt;the stats and sort commands:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;top command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=perfmon object=Process counter="%_Processor_Time" host=WINSERVER1 earliest=-2m latest=now NOT instance IN(_Total,Idle,System)
| top perc90(Value) as Value by host limit=10&lt;/LI-CODE&gt;&lt;P&gt;stats and sort commands&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=perfmon object=Process counter="%_Processor_Time" host=WINSERVER1 earliest=-2m latest=now NOT instance IN(_Total,Idle,System)
| stats perc90(Value) as Value by host
| sort 10 BY Value&lt;/LI-CODE&gt;&lt;P&gt;the first is easier but I usually use the second solution.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 05:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652434#M225503</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-29T05:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CPU Usage Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652563#M225543</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used most of what you did, along with some functions I found and now have it like this.&lt;/P&gt;&lt;P&gt;index=perfmon object=Process counter="%_Processor_Time" host=WINSERVER1 earliest=-2m latest=now NOT instance IN(_Total,Idle,System)&lt;BR /&gt;| stats perc90(Value) as Value by host&lt;/P&gt;&lt;P&gt;| eval Value=round(Value,2)&lt;BR /&gt;| sort -Value | head 10&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 16:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652563#M225543</guid>
      <dc:creator>sheepIT</dc:creator>
      <dc:date>2023-07-31T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CPU Usage Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652646#M225557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259130"&gt;@sheepIT&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;is it ok for you?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 05:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652646#M225557</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-01T05:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CPU Usage Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652699#M225571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259130"&gt;@sheepIT&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-CPU-Usage-Query/m-p/652699#M225571</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-01T12:21:35Z</dc:date>
    </item>
  </channel>
</rss>

