<?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: Search command Top -&amp;gt; Does not return more than 100K results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46350#M11086</link>
    <description>&lt;P&gt;please refer to the specifications for limits.conf&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Limitsconf&lt;/A&gt;&lt;BR /&gt;
or in your instance in $SPLUNK_HOME/etc/system/README/limits.conf.spec&lt;/P&gt;

&lt;P&gt;This one seems to be the parameter you are looking for.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[top]&lt;BR /&gt;
maxvalues = &amp;lt; integer &amp;gt;&lt;BR /&gt;
* Maximum number of distinct field vector values to keep track of.&lt;BR /&gt;
* Defaults to 100000.&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2013 16:43:50 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-03-01T16:43:50Z</dc:date>
    <item>
      <title>Search command Top -&gt; Does not return more than 100K results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46349#M11085</link>
      <description>&lt;P&gt;I need to index the all the Top N results of a field. &lt;/P&gt;

&lt;P&gt;Search query: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|top limit=0 field| streamstats count as rank 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result set never exceeds 100K rows. I looked at $Splunk/etc/system/default/limits.conf and This is a the default for top search command:&lt;/P&gt;

&lt;P&gt;[top]&lt;BR /&gt;
    maxresultrows = 50000&lt;BR /&gt;
    # maximum distinct value vectors to keep track of&lt;BR /&gt;
    maxvalues = 0&lt;BR /&gt;
    maxvaluesize = 0&lt;/P&gt;

&lt;P&gt;There is not any configuration in the local limits.conf file to override the default. &lt;/P&gt;

&lt;P&gt;Question:&lt;BR /&gt;
How should I configure my local limits.conf file to have all the result set generated by the search command top limit=0?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 20:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46349#M11085</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-02-27T20:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search command Top -&gt; Does not return more than 100K results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46350#M11086</link>
      <description>&lt;P&gt;please refer to the specifications for limits.conf&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Limitsconf&lt;/A&gt;&lt;BR /&gt;
or in your instance in $SPLUNK_HOME/etc/system/README/limits.conf.spec&lt;/P&gt;

&lt;P&gt;This one seems to be the parameter you are looking for.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[top]&lt;BR /&gt;
maxvalues = &amp;lt; integer &amp;gt;&lt;BR /&gt;
* Maximum number of distinct field vector values to keep track of.&lt;BR /&gt;
* Defaults to 100000.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 16:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46350#M11086</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-03-01T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search command Top -&gt; Does not return more than 100K results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46351#M11087</link>
      <description>&lt;P&gt;Yannk,&lt;/P&gt;

&lt;P&gt;Thanks for your input. I have maxvalues set to 0 as presented in my question. I assumed that it should not default to 100K. Is this correct?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 17:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46351#M11087</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-03-01T17:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search command Top -&gt; Does not return more than 100K results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46352#M11088</link>
      <description>&lt;P&gt;you are right, I would expect 0 to be interpreted as unlimited.&lt;/P&gt;

&lt;P&gt;Or maybe is there another limit for each subsearch/searchcommand that has precedence.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 17:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-command-Top-gt-Does-not-return-more-than-100K-results/m-p/46352#M11088</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-03-01T17:45:30Z</dc:date>
    </item>
  </channel>
</rss>

