<?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: Upper Limit for REST API limits.conf - maxresultrows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20373#M3170</link>
    <description>&lt;P&gt;One problem with the above is, that Splunk will search over all events, and in case you have a few million events and want to query the first 200000, the search will take rather long time (of course depends on the machine it runs on).&lt;/P&gt;

&lt;P&gt;You need to add &lt;CODE&gt;| head n&lt;/CODE&gt; with appropriate &lt;CODE&gt;n&lt;/CODE&gt;, e.g. 200000 so that Splunk will  return the results as soon as it found the first 200000 events. Further optimization could be to dynamically calculate &lt;CODE&gt;n&lt;/CODE&gt; e.g. 50k, 100k, 150k, 200k in each respective iteration.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2013 15:28:36 GMT</pubDate>
    <dc:creator>andras_kerekes</dc:creator>
    <dc:date>2013-06-27T15:28:36Z</dc:date>
    <item>
      <title>Upper Limit for REST API limits.conf - maxresultrows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20371#M3168</link>
      <description>&lt;P&gt;Is there an upper end limit on this value?  In certain use cases, there might be a need to return a very large number of results.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2011 23:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20371#M3168</guid>
      <dc:creator>Chris_Olson</dc:creator>
      <dc:date>2011-05-31T23:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Limit for REST API limits.conf - maxresultrows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20372#M3169</link>
      <description>&lt;P&gt;I would not raise the limit. Instead, you can simply make multiple calls to the GET endpoint, in blocks smaller than the default &lt;CODE&gt;maxresultrows&lt;/CODE&gt; limit of 50,000 until you have exhausted the number of events returned, i.e, the first call uses &lt;CODE&gt;offset=0&amp;amp;count=50000&lt;/CODE&gt;, the next uses &lt;CODE&gt;offset=50000&amp;amp;count=50000&lt;/CODE&gt;, then &lt;CODE&gt;offset=100000&amp;amp;count=50000&lt;/CODE&gt;, etc. Your program that calls the endpoint can output each block as it get it.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 07:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20372#M3169</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-06-01T07:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Limit for REST API limits.conf - maxresultrows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20373#M3170</link>
      <description>&lt;P&gt;One problem with the above is, that Splunk will search over all events, and in case you have a few million events and want to query the first 200000, the search will take rather long time (of course depends on the machine it runs on).&lt;/P&gt;

&lt;P&gt;You need to add &lt;CODE&gt;| head n&lt;/CODE&gt; with appropriate &lt;CODE&gt;n&lt;/CODE&gt;, e.g. 200000 so that Splunk will  return the results as soon as it found the first 200000 events. Further optimization could be to dynamically calculate &lt;CODE&gt;n&lt;/CODE&gt; e.g. 50k, 100k, 150k, 200k in each respective iteration.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 15:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20373#M3170</guid>
      <dc:creator>andras_kerekes</dc:creator>
      <dc:date>2013-06-27T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Limit for REST API limits.conf - maxresultrows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20374#M3171</link>
      <description>&lt;P&gt;This is incorrect. Splunk lets you query results and events from the REST API before the search has completed. You can see this in effect whenever you perform a large search from the UI (which itself uses the REST API). By trying to engineer smaller searches yourself (which is what you'd do if you were, say, querying against MySQL or a traditional RDBMS, and which is unnecessary in Splunk) you are complicating your code, putting extra load on the server, and possibly preventing your query from effective map-reduce execution.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 16:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/20374#M3171</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-06-27T16:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Limit for REST API limits.conf - maxresultrows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/661279#M228308</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;After submitting a search query via REST API, is there a way to check number of events the search results for the job id?&lt;/P&gt;&lt;P&gt;Without which, I won't know if&amp;nbsp; how many GET each limited to 50K results which is something I run into as well.&lt;/P&gt;&lt;P&gt;Alternatively, is there an argument that I can use in HTTP GET to splunk to override the 50K limit?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MCW&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 00:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Upper-Limit-for-REST-API-limits-conf-maxresultrows/m-p/661279#M228308</guid>
      <dc:creator>MCW</dc:creator>
      <dc:date>2023-10-19T00:06:16Z</dc:date>
    </item>
  </channel>
</rss>

