<?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: savedsearch command only returns maximum 10000 results? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85671#M1939</link>
    <description>&lt;P&gt;Thanks everybody for your answer. I finally figure out that I have to add | table * in my search. Originally my search is something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index | JOIN type=inner a b [search index=my_index xx=yy | fields c d e]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just add *&lt;EM&gt;| table *&lt;/EM&gt;* at the end of the search and it will return the exact number of results, which is 80000++. It is more than the default maxresultrows(50000). I do not set anythings in limits.conf. I don't know why is this working.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2013 15:14:04 GMT</pubDate>
    <dc:creator>cycheng</dc:creator>
    <dc:date>2013-07-10T15:14:04Z</dc:date>
    <item>
      <title>savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85664#M1932</link>
      <description>&lt;P&gt;I have a saved search which will return about 80000++ results. I tried the below command in Search bar, it returns correct total of results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedsearch "get_complete_dataset"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I use it in my view:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;module name="Search" layoutPanel="panel_row1_col1" autoRun="True"&amp;gt;
    param name="search"&amp;gt;| savedsearch "get_complete_dataset"/param&amp;gt;

    module name="HTML"&amp;gt;
      param name="html"&amp;gt;
      sid=$results.sid$&amp;lt;br&amp;gt;
      ]]&amp;gt;&amp;lt;/param&amp;gt;
    /module&amp;gt;
  /module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;About view return sid="1373012981.47". Then I run below command in Search bar:&lt;BR /&gt;
| loadjob "1373012981.47"&lt;/P&gt;

&lt;P&gt;I'm suprise as the job only returns 10000 results. Why is this happened? What can I do so that the search can return correct result?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 08:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85664#M1932</guid>
      <dc:creator>cycheng</dc:creator>
      <dc:date>2013-07-05T08:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85665#M1933</link>
      <description>&lt;P&gt;hello brother,&lt;BR /&gt;&lt;BR /&gt;
create a limits.conf in&lt;BR /&gt;&lt;BR /&gt;
$SPLUNK_HOME/etc/system/local/&lt;BR /&gt;&lt;BR /&gt;
or&lt;BR /&gt;&lt;BR /&gt;
$SPLUNK_HOME/etc/apps/&lt;YOUR app="" name=""&gt;/local/&lt;/YOUR&gt;&lt;/P&gt;

&lt;P&gt;create a limits.conf with the below stanza. max is 50000&lt;/P&gt;

&lt;P&gt;[searchresults]&lt;BR /&gt;&lt;BR /&gt;
maxresultrows = 50000&lt;/P&gt;

&lt;P&gt;yours,&lt;BR /&gt;&lt;BR /&gt;
eashwar raghunathan&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85665#M1933</guid>
      <dc:creator>eashwar</dc:creator>
      <dc:date>2020-09-28T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85666#M1934</link>
      <description>&lt;P&gt;According to the splunk doc, the default number of maxresultrows is 50000.  I tried to set it in limit.conf and reboot my server, it still return 10000 results.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85666#M1934</guid>
      <dc:creator>cycheng</dc:creator>
      <dc:date>2013-07-05T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85667#M1935</link>
      <description>&lt;P&gt;i guess you have to increase the subsearch limit in the limits.conf file. I am not fully sure but check with limits.conf which has 10000 values set. change one by one which you may feel appropriate.And for changing configs you don't have to restart server. Only splunk restart from command line will do.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85667#M1935</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T18:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85668#M1936</link>
      <description>&lt;P&gt;The way you defined your search I beleieve you are  hitting the savedsearch limit defined in limits.conf.  Just for referance subsearch limits are defined in savedsearches.conf,  in particularly dispatch.max_count which the default is 50000.  The stanza you want in limits.conf is &lt;STRONG&gt;[subsearch]&lt;/STRONG&gt;, settings  &lt;STRONG&gt;maxout&lt;/STRONG&gt;, but the value can not be greater than 10499.&lt;/P&gt;

&lt;P&gt;Try removing the &lt;STRONG&gt;|&lt;/STRONG&gt; from your param name="search" or try using the &lt;STRONG&gt;HiddenSavedSearch&lt;/STRONG&gt; module.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/AdvancedDev/ModuleReference#HiddenSavedSearch"&gt;ModuleReference#HiddenSavedSearch&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Savedsearchesconf"&gt;Savedsearchesconf&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Hope this makes sense or gets you started.  Dont forget to accept and vote up answers that help. Cheers &lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85668#M1936</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-07-08T19:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85669#M1937</link>
      <description>&lt;P&gt;By removing the |, I get "No results found". I tried HiddenSavedSearch with useHistory=False and HiddenSearch, all returns 10000 results to me.&lt;/P&gt;

&lt;P&gt;I see this in inspect-&amp;gt;search.log,  loader - Arguments are: "splunkd" "search" "--id=1373353138.5" "--maxbuckets=0" "--ttl=600" "--maxout=10000" "--maxtime=8640000" "--lookups=1" "--reduce_freq=10" "--user=cycheng" "--pro" "--roles=admin:can_delete:power:user"&lt;/P&gt;

&lt;P&gt;I also set the [subsearch] maxout = 5000 in limits.conf, but somehow it doesn't take the maxout settings.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85669#M1937</guid>
      <dc:creator>cycheng</dc:creator>
      <dc:date>2020-09-28T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85670#M1938</link>
      <description>&lt;P&gt;is it in the default app/ system folder of splunk. For a workaround you can use a macro instead of a savedsearch.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 08:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85670#M1938</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-09T08:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: savedsearch command only returns maximum 10000 results?</title>
      <link>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85671#M1939</link>
      <description>&lt;P&gt;Thanks everybody for your answer. I finally figure out that I have to add | table * in my search. Originally my search is something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index | JOIN type=inner a b [search index=my_index xx=yy | fields c d e]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just add *&lt;EM&gt;| table *&lt;/EM&gt;* at the end of the search and it will return the exact number of results, which is 80000++. It is more than the default maxresultrows(50000). I do not set anythings in limits.conf. I don't know why is this working.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 15:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/savedsearch-command-only-returns-maximum-10000-results/m-p/85671#M1939</guid>
      <dc:creator>cycheng</dc:creator>
      <dc:date>2013-07-10T15:14:04Z</dc:date>
    </item>
  </channel>
</rss>

