<?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: how to create a top 5 of results and a bin for the rest of them  (sorted stack bars) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71438#M17874</link>
    <description>&lt;P&gt;This does not work, unfortunately. Even a plain &lt;CODE&gt;top 5 total&lt;/CODE&gt; returns empty results.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2013 14:07:36 GMT</pubDate>
    <dc:creator>wsw70</dc:creator>
    <dc:date>2013-09-24T14:07:36Z</dc:date>
    <item>
      <title>how to create a top 5 of results and a bin for the rest of them  (sorted stack bars)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71436#M17872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Now that I know, thanks to &lt;A href="http://answers.splunk.com/users/1749/rturk"&gt;R.Turk&lt;/A&gt;, &lt;A href="http://answers.splunk.com/answers/103451/how-to-sort-a-stacked-bar-chart-by-length"&gt;how to sort stacked bar charts&lt;/A&gt; I wanted to pick a top 5 of the results. This works fine by adding a &lt;CODE&gt;| head 5&lt;/CODE&gt; to the search. &lt;/P&gt;

&lt;P&gt;Is there a way to gather all the other events (the ones which did not make it to the top 5) in a separate bar called "others" (or whatever)? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 12:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71436#M17872</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2013-09-24T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a top 5 of results and a bin for the rest of them  (sorted stack bars)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71437#M17873</link>
      <description>&lt;P&gt;Could this be of use? &lt;CODE&gt;top&lt;/CODE&gt; has a &lt;CODE&gt;useother&lt;/CODE&gt; parameter that can be used to bunch the remaining events together into &lt;CODE&gt;OTHER&lt;/CODE&gt;, like so;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined | top 5 clientip useother=t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 13:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71437#M17873</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-09-24T13:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a top 5 of results and a bin for the rest of them  (sorted stack bars)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71438#M17874</link>
      <description>&lt;P&gt;This does not work, unfortunately. Even a plain &lt;CODE&gt;top 5 total&lt;/CODE&gt; returns empty results.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 14:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71438#M17874</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2013-09-24T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a top 5 of results and a bin for the rest of them  (sorted stack bars)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71439#M17875</link>
      <description>&lt;P&gt;eeh you need to do top 5 &lt;EM&gt;something&lt;/EM&gt;. Is &lt;CODE&gt;total&lt;/CODE&gt; a field that exists in some/most/all of your events?&lt;/P&gt;

&lt;P&gt;You know that &lt;CODE&gt;top&lt;/CODE&gt; is not the same as &lt;CODE&gt;max&lt;/CODE&gt;? &lt;CODE&gt;top&lt;/CODE&gt; will look at the frequency of values for the specified field, not whether a value is higher than another.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 20:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71439#M17875</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-09-24T20:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a top 5 of results and a bin for the rest of them  (sorted stack bars)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71440#M17876</link>
      <description>&lt;P&gt;Sorry, I was not clear enough when referring to &lt;A href="http://answers.splunk.com/answers/103451/how-to-sort-a-stacked-bar-chart-by-length"&gt;the previous post on sorting bar charts&lt;/A&gt;. The search over there was &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; &lt;BR /&gt;
| chart count over N_vendor by N_subnetname &lt;BR /&gt;
| addtotals fieldname=total &lt;BR /&gt;
| sort -total &lt;BR /&gt;
| fields - total&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;so &lt;CODE&gt;total&lt;/CODE&gt; is indeed defined.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 05:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-a-top-5-of-results-and-a-bin-for-the-rest-of-them/m-p/71440#M17876</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2013-09-25T05:47:54Z</dc:date>
    </item>
  </channel>
</rss>

