<?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 do I sort this stats count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362538#M107107</link>
    <description>&lt;P&gt;Because there are fewer than 1000 Countries, this will work just fine but the default for &lt;CODE&gt;sort&lt;/CODE&gt; is equivalent to &lt;CODE&gt;sort 1000&lt;/CODE&gt; so EVERYONE should ALWAYS be in the habit of using &lt;CODE&gt;sort 0&lt;/CODE&gt; (unlimited) instead, as in &lt;CODE&gt;sort 0 - count&lt;/CODE&gt; or your results will be silently truncated to the first 1000.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 23:24:55 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-08-11T23:24:55Z</dc:date>
    <item>
      <title>How do I sort this stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362536#M107105</link>
      <description>&lt;P&gt;This is my search below. It shows Country and count. How do I sort the count field for largest to smallest?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="cisco_asa" src_ip="*" dest_port="*" action="blocked" | fields src_ip | iplocation src_ip | stats count by Country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 23:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362536#M107105</guid>
      <dc:creator>bayman</dc:creator>
      <dc:date>2017-08-10T23:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort this stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362537#M107106</link>
      <description>&lt;P&gt;Add the following to the end of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search....| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Aug 2017 03:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362537#M107106</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2017-08-11T03:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort this stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362538#M107107</link>
      <description>&lt;P&gt;Because there are fewer than 1000 Countries, this will work just fine but the default for &lt;CODE&gt;sort&lt;/CODE&gt; is equivalent to &lt;CODE&gt;sort 1000&lt;/CODE&gt; so EVERYONE should ALWAYS be in the habit of using &lt;CODE&gt;sort 0&lt;/CODE&gt; (unlimited) instead, as in &lt;CODE&gt;sort 0 - count&lt;/CODE&gt; or your results will be silently truncated to the first 1000.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 23:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362538#M107107</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-11T23:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort this stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362539#M107108</link>
      <description>&lt;P&gt;that's a good one to keep in mind!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 23:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362539#M107108</guid>
      <dc:creator>santiagoaloi</dc:creator>
      <dc:date>2017-08-11T23:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort this stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362540#M107109</link>
      <description>&lt;P&gt;This is one of the most common gotchas I see among our users.  Sure wish splunk would add some sort of tool tip or notification when such limits kick in.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 23:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362540#M107109</guid>
      <dc:creator>dstaulcu</dc:creator>
      <dc:date>2017-08-11T23:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort this stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362541#M107110</link>
      <description>&lt;P&gt;Just an update, default is now &lt;CODE&gt;10000&lt;/CODE&gt; now &lt;CODE&gt;1000&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 09:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-this-stats-count/m-p/362541#M107110</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-21T09:01:22Z</dc:date>
    </item>
  </channel>
</rss>

