<?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: show top 5 CPU Usage vom VMware Hosts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500978#M139499</link>
    <description>&lt;P&gt;But it will be lacking events and showing incorrect results.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 14:54:14 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-10-14T14:54:14Z</dc:date>
    <item>
      <title>show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500967#M139488</link>
      <description>&lt;P&gt;Hi Splunkies,&lt;/P&gt;

&lt;P&gt;this is my search:&lt;BR /&gt;
index="vmware-perf" sourcetype="vmware:perf:cpu" hypervisor_id="*"&lt;BR /&gt;
| join hypervisor_id [search index="vmware-inv" sourcetype="vmware:inv:hostsystem"]&lt;BR /&gt;
| timechart avg(cpu_load_percent) by hypervisor_name&lt;/P&gt;

&lt;P&gt;my Problem:&lt;BR /&gt;
This search will list all hosts.&lt;BR /&gt;
But, i would like to have an evaluation of the top 5 hosts.&lt;BR /&gt;
The idea was to calculate the sum of average values from one host over a period of time.&lt;BR /&gt;
Then i compare this result with the other hosts and could sort a top 5 list...&lt;/P&gt;

&lt;P&gt;Does anyone have an idea how to modify the search?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500967#M139488</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2020-09-30T02:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500968#M139489</link>
      <description>&lt;P&gt;Never use &lt;CODE&gt;join&lt;/CODE&gt;; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="vmware-perf" sourcetype="vmware:perf:cpu" hypervisor_id="*") OR
(index="vmware-inv" sourcetype="vmware:inv:hostsystem")
| eventstats values(hypervisor_name) AS hypervisor_name BY hypervisor_id
| timechart avg(cpu_load_percent) AS avg_cpu_load_pct BY hypervisor_name
| untable _time hypervisor_name avg_cpu_load_pct
| eventstats sum(avg_cpu_load_pct) AS sum_for_top5 BY hypervisor_name
| sort 0 - sum_for_top5 hypervisor_name
| streamstats current=f last(hypervisor_name) AS next_hypervisor_name
| streamstats count(eval(hypervisor_name!=next_hypervisor_name)) AS count
| where count&amp;lt;5
| timechart limit=0 useother=f avg(avg_cpu_load_pct) AS avg_cpu_load_pct BY hypervisor_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Oct 2019 23:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500968#M139489</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-13T23:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500969#M139490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can use below search.&lt;/P&gt;

&lt;P&gt;index="vmware-perf" sourcetype="vmware:perf:cpu" hypervisor_id="*"&lt;BR /&gt;
| join hypervisor_id [search index="vmware-inv" sourcetype="vmware:inv:hostsystem"]&lt;BR /&gt;
| timechart avg(cpu_load_percent) by hypervisor_name&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;modify the same to&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;index="vmware-perf" sourcetype="vmware:perf:cpu" hypervisor_id="*"&lt;BR /&gt;
| join hypervisor_id [search index="vmware-inv" sourcetype="vmware:inv:hostsystem"]&lt;BR /&gt;
| timechart usenull=f useother=f  avg(cpu_load_percent) by hypervisor_name where avg in top5&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:32:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500969#M139490</guid>
      <dc:creator>Prewin027</dc:creator>
      <dc:date>2020-09-30T02:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500970#M139491</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;ther is no list of hosts...&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 07:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500970#M139491</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2019-10-14T07:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500971#M139492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;works, but it dont sort the host list vom maximum to minimum load.&lt;BR /&gt;
Can you helm me again?&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 09:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500971#M139492</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2019-10-14T09:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500972#M139493</link>
      <description>&lt;P&gt;Correction:&lt;/P&gt;

&lt;P&gt;there is a host list, was a performance problem, sorry, dev center &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
Now, how to sort hosts to display from maximum to minimum load?&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 09:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500972#M139493</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2019-10-14T09:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500973#M139494</link>
      <description>&lt;P&gt;Quote: Never use join&lt;/P&gt;

&lt;P&gt;Why, please explain - thx&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500973#M139494</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2019-10-14T11:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500974#M139495</link>
      <description>&lt;P&gt;I assumed that &lt;CODE&gt;hypervisor_name&lt;/CODE&gt; was your &lt;CODE&gt;"host"&lt;/CODE&gt; field.  Are there multiple hosts per hypervisor or multiple hypervisor per host?  Answer that and I will try again.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500974#M139495</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T12:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500975#M139496</link>
      <description>&lt;P&gt;Just Google it.  This has been widely opined.  It does not scale.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500975#M139496</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500976#M139497</link>
      <description>&lt;P&gt;host = ESX Server&lt;BR /&gt;
supervisor = ???&lt;/P&gt;

&lt;P&gt;actualy the top5 ESX server where sorted alphabetically, not by load&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500976#M139497</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2019-10-14T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500977#M139498</link>
      <description>&lt;P&gt;the problem is that the graph shows zero until the evaluation is complete. (10-30 seconds)&lt;/P&gt;

&lt;P&gt;With join the graph builds up ...&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:09:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500977#M139498</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2019-10-14T13:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500978#M139499</link>
      <description>&lt;P&gt;But it will be lacking events and showing incorrect results.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 14:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500978#M139499</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T14:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: show top 5 CPU Usage vom VMware Hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500979#M139500</link>
      <description>&lt;P&gt;Stupid autocorrect.  I should have said "hypervisor", not "supervisor".&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 14:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-top-5-CPU-Usage-vom-VMware-Hosts/m-p/500979#M139500</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T14:55:00Z</dc:date>
    </item>
  </channel>
</rss>

