<?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 get top 10 stats with pivot command without using sort? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188370#M54260</link>
    <description>&lt;P&gt;Hi Simon, &lt;/P&gt;

&lt;P&gt;Try this search:&lt;/P&gt;

&lt;P&gt;| pivot MyModel MyObject count(MyObject) AS count SPLITROW myseries | sort - count | head 10 &lt;/P&gt;

&lt;P&gt;tks!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2014 13:53:04 GMT</pubDate>
    <dc:creator>dfigurello</dc:creator>
    <dc:date>2014-08-20T13:53:04Z</dc:date>
    <item>
      <title>How to get top 10 stats with pivot command without using sort?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188369#M54259</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;How can I get a top 10 statistic with pivot? Currently I'm doing something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot MyModel MyObject count(MyObject) AS count SPLITROW myseries | sort 10 - count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like to avoid the sort somehow.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Simon&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 13:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188369#M54259</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2014-08-20T13:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 stats with pivot command without using sort?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188370#M54260</link>
      <description>&lt;P&gt;Hi Simon, &lt;/P&gt;

&lt;P&gt;Try this search:&lt;/P&gt;

&lt;P&gt;| pivot MyModel MyObject count(MyObject) AS count SPLITROW myseries | sort - count | head 10 &lt;/P&gt;

&lt;P&gt;tks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 13:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188370#M54260</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-08-20T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 stats with pivot command without using sort?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188371#M54261</link>
      <description>&lt;P&gt;This is the same as my search does. &lt;BR /&gt;
I asked if there's a way to get the top10 statistics directly with the pivot command.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188371#M54261</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2014-08-20T14:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 stats with pivot command without using sort?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188372#M54262</link>
      <description>&lt;P&gt;@simon what in the world are you trying to get at? Both solution seems to work when handling pivot &lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 01:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188372#M54262</guid>
      <dc:creator>spammenot66</dc:creator>
      <dc:date>2016-03-16T01:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 stats with pivot command without using sort?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188373#M54263</link>
      <description>&lt;P&gt;I downvoted this post because doesn't answer the question at all.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-stats-with-pivot-command-without-using-sort/m-p/188373#M54263</guid>
      <dc:creator>bhawkins1</dc:creator>
      <dc:date>2016-11-08T16:18:49Z</dc:date>
    </item>
  </channel>
</rss>

