<?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: Timechart with top values split by host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-top-values-split-by-host/m-p/438559#M124826</link>
    <description>&lt;P&gt;I think I just answered it myself. I'm now using WHERE max in top50.&lt;/P&gt;

&lt;P&gt;index=perfmon eventtype=Hyperspace_Perfmon counter = "Processor Queue Length" &lt;BR /&gt;
| timechart span=1m values(Value) as Value by host limit=0 useother=f&lt;BR /&gt;
|fillnull Value=0 |  untable _time, host, Value&lt;BR /&gt;
| timechart span=$span_token$ sum(eval(if(Value&amp;gt;$threshold6$,1,0))) as CPU  by host WHERE max in $Toptoken$ usenull=f&lt;BR /&gt;
| sort -CPU&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:20:49 GMT</pubDate>
    <dc:creator>bbknowles</dc:creator>
    <dc:date>2020-09-30T00:20:49Z</dc:date>
    <item>
      <title>Timechart with top values split by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-top-values-split-by-host/m-p/438558#M124825</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;
Let me provide some backstory.  I've been assigned some dashboards.  I need to make them interactive, but one has about 250 servers and the other has nearly 5000 servers.  I get truncated results for the multiple panels when I try to run them.&lt;/P&gt;

&lt;P&gt;So I've been trying to narrow the results down with minimal success.  Currently, I'm focusing on the smaller dashboard.  I am now looking for just the outliers for each panel, but that still returns truncated results.  &lt;/P&gt;

&lt;P&gt;Now I'm trying to give the user the option to select the up to the Top 50 results, but each chart is a timechart with an eval statement split by host.&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;BR /&gt;
index=perfmon eventtype=Hyperspace_Perfmon counter = "Processor Queue Length" &lt;BR /&gt;
| timechart span=1m values(Value) as Value by host limit=0 useother=f&lt;BR /&gt;
|fillnull Value=0 |  untable _time, host, Value&lt;BR /&gt;
| timechart span=15m sum(eval(if(Value&amp;gt;20,1,0))) as CPU  by host $Toptoken$ usenull=f&lt;BR /&gt;
| sort -CPU&lt;/P&gt;

&lt;P&gt;This limits the number of hosts to 50, but only gives me the first 50 hosts.&lt;/P&gt;

&lt;P&gt;If I add the token, to the sort line, I only get 50 records.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 14:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-top-values-split-by-host/m-p/438558#M124825</guid>
      <dc:creator>bbknowles</dc:creator>
      <dc:date>2019-05-03T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with top values split by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-top-values-split-by-host/m-p/438559#M124826</link>
      <description>&lt;P&gt;I think I just answered it myself. I'm now using WHERE max in top50.&lt;/P&gt;

&lt;P&gt;index=perfmon eventtype=Hyperspace_Perfmon counter = "Processor Queue Length" &lt;BR /&gt;
| timechart span=1m values(Value) as Value by host limit=0 useother=f&lt;BR /&gt;
|fillnull Value=0 |  untable _time, host, Value&lt;BR /&gt;
| timechart span=$span_token$ sum(eval(if(Value&amp;gt;$threshold6$,1,0))) as CPU  by host WHERE max in $Toptoken$ usenull=f&lt;BR /&gt;
| sort -CPU&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-top-values-split-by-host/m-p/438559#M124826</guid>
      <dc:creator>bbknowles</dc:creator>
      <dc:date>2020-09-30T00:20:49Z</dc:date>
    </item>
  </channel>
</rss>

