<?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: List hosts with highest value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98727#M20660</link>
    <description>&lt;P&gt;Thanks, but that is still not what I'm after. &lt;CODE&gt;useother&lt;/CODE&gt; only affects the grouping of the hosts in the chart.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;timechart&lt;/CODE&gt; is really not the answer here, since I'm not concerned about the values themselves, but which hosts had the max value at a particular time.&lt;/P&gt;

&lt;P&gt;Since I'm primarily interested in the hostnames, a chart is probably not the best visualization, but rather a table, with values about like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time  , host_with_highest_latency
time n, host001.domain.com
time m, host321.domain.com
time l, host219.domain.com
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Oct 2012 15:10:13 GMT</pubDate>
    <dc:creator>echalex</dc:creator>
    <dc:date>2012-10-29T15:10:13Z</dc:date>
    <item>
      <title>List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98722#M20655</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We're debugging an issue where disk latency shoots up at a specific time. I would like to create a search which shows the host with the highest latency at any specific minute.&lt;/P&gt;

&lt;P&gt;So the base search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=iostat | multikv fields avgWaitMillis
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but then I'm not sure how to continue... I would like to find every host where avgWaitMillis is the highest for every minute.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 10:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98722#M20655</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-10-23T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98723#M20656</link>
      <description>&lt;P&gt;I think you may want to pipe to the &lt;CODE&gt;timechart&lt;/CODE&gt; command, which will allow you gain stats over time. You may be able to do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..| timechart span=1m max(avgWaitMillis) as maxWait
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I haven't used a split-by cause (don't think you'll need one), but if you need one, just add something like, "&lt;CODE&gt;by someField&lt;/CODE&gt;" (where someField is a unique split-by-cause you have).&lt;/P&gt;

&lt;P&gt;Please see documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Timechart&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 11:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98723#M20656</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-10-23T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98724#M20657</link>
      <description>&lt;P&gt;I'm afraid this doesn't do what I want at all.&lt;/P&gt;

&lt;P&gt;That will just show the max values of avgWaitMillis, without even mentioning the host.&lt;/P&gt;

&lt;P&gt;I want to know which host had the highest latency, not what the highest latency was.&lt;/P&gt;

&lt;P&gt;Doing the same &lt;CODE&gt;by host&lt;/CODE&gt; doesn't help me either, for out of the hundred or so hosts, the majority will be lumped into &lt;CODE&gt;OTHER&lt;/CODE&gt;. So knowing that one host of 90 in &lt;CODE&gt;OTHER&lt;/CODE&gt; had the highest latency at 21:15 and 23:30 reveals nothing.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 11:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98724#M20657</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-10-23T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98725#M20658</link>
      <description>&lt;P&gt;Thank you for your effort to help, never the less!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 11:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98725#M20658</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-10-23T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98726#M20659</link>
      <description>&lt;P&gt;Have you tried adding &lt;CODE&gt;useother=f&lt;/CODE&gt; (mentioned in the docs), like so:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;..| timechart span=1m max(avgWaitMillis) as maxWait by host useother=f&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I can't remember how specific the useother boolean needs to be, but you can also try &lt;CODE&gt;useother=false&lt;/CODE&gt;, or the binary equivalent (e.g. "1" OR "0").&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 13:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98726#M20659</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-10-23T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98727#M20660</link>
      <description>&lt;P&gt;Thanks, but that is still not what I'm after. &lt;CODE&gt;useother&lt;/CODE&gt; only affects the grouping of the hosts in the chart.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;timechart&lt;/CODE&gt; is really not the answer here, since I'm not concerned about the values themselves, but which hosts had the max value at a particular time.&lt;/P&gt;

&lt;P&gt;Since I'm primarily interested in the hostnames, a chart is probably not the best visualization, but rather a table, with values about like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time  , host_with_highest_latency
time n, host001.domain.com
time m, host321.domain.com
time l, host219.domain.com
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2012 15:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98727#M20660</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-10-29T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: List hosts with highest value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98728#M20661</link>
      <description>&lt;P&gt;To elaborate a bit on that sample table:&lt;/P&gt;

&lt;P&gt;At time n, the &lt;CODE&gt;avgWaitMillis&lt;/CODE&gt; of host001 equals &lt;CODE&gt;max(avgWaitMillis)&lt;/CODE&gt; of all hosts (at that time).&lt;/P&gt;

&lt;P&gt;Likewise, at time l, the &lt;CODE&gt;avgWaitMillis&lt;/CODE&gt; of host219 == &lt;CODE&gt;max(avgWaitMillis)&lt;/CODE&gt; of all hosts at that time.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 15:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/List-hosts-with-highest-value/m-p/98728#M20661</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-10-29T15:12:25Z</dc:date>
    </item>
  </channel>
</rss>

