<?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: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204398#M59371</link>
    <description>&lt;P&gt;No. The GUI is not constrained by this rule. Accessing search results via the REST API is constrained by this rule.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 22:14:55 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2016-04-27T22:14:55Z</dc:date>
    <item>
      <title>Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204393#M59366</link>
      <description>&lt;P&gt;The job returns 800k results in Splunk Web, whereas the Java API always returns 500k. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 22:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204393#M59366</guid>
      <dc:creator>DataWarehousing</dc:creator>
      <dc:date>2016-04-15T22:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204394#M59367</link>
      <description>&lt;P&gt;Seems like the maxresultrow is set to 500K. Have a look at following post to how to retrieve larger results.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/java-sdk/SP-CAAAEPZ#paginating"&gt;http://dev.splunk.com/view/java-sdk/SP-CAAAEPZ#paginating&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 03:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204394#M59367</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-16T03:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204395#M59368</link>
      <description>&lt;P&gt;No it is not set to 500k. And i am already paginating through results. Still my upper cap remains to be 500k. When i inspect the job created by the API hit on the GUI it also shows the ResultCount to be 500k. But still when i search using the same query on the SPLUNK GUI it returns me 800k results.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204395#M59368</guid>
      <dc:creator>DataWarehousing</dc:creator>
      <dc:date>2016-04-18T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204396#M59369</link>
      <description>&lt;P&gt;This is set in limits.conf - here is the documentation from limits.conf.spec&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[restapi]
maxresultrows = &amp;lt;integer&amp;gt;
* Maximum result rows to be returned by /events or /results getters from REST
  API.
* Defaults to 50000.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also answered on &lt;A href="https://answers.splunk.com/answers/242114/limited-results-when-running-searches-via-rest-api.html"&gt;Limited results when running searches via REST API&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Create a limits.conf file in $SPLUNK_HOME/etc/system/local. Change the value and then restart Splunk to have the new value take effect.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 22:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204396#M59369</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-04-18T22:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204397#M59370</link>
      <description>&lt;P&gt;I am already paginating through my results. Should it not help me get all the records irrespective of the maxResultRows value ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 19:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204397#M59370</guid>
      <dc:creator>DataWarehousing</dc:creator>
      <dc:date>2016-04-25T19:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204398#M59371</link>
      <description>&lt;P&gt;No. The GUI is not constrained by this rule. Accessing search results via the REST API is constrained by this rule.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 22:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204398#M59371</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-04-27T22:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204399#M59372</link>
      <description>&lt;P&gt;Even though that seems like an old question let me give you my 2 cents since I encountered the same problem.&lt;/P&gt;

&lt;P&gt;Let me start by clarifying that this question is not about the maxresultsrows that is set by default to 50k, the op is already paginating through the results and he is getting them in chunks of 50k.&lt;BR /&gt;
The problem here is another limit of 500k. (notice the extra 0) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;max_count = &amp;lt;integer&amp;gt;
* The number of events that can be accessible in any given status bucket 
  (when status_buckets = 0).
* The last accessible event in a call that takes a base and count.
* Note: This value does not reflect the number of events displayed in the 
  UI after the search is evaluated or computed.
* Default: 500000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You have to change that limit.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 07:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204399#M59372</guid>
      <dc:creator>ifotopoulos</dc:creator>
      <dc:date>2017-10-05T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Splunk Java SDK always return 500k results, but I get 800k results in Splunk Web?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204400#M59373</link>
      <description>&lt;P&gt;Perhaps a year late, but this is the answer that works for us&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 10:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-Splunk-Java-SDK-always-return-500k-results-but-I/m-p/204400#M59373</guid>
      <dc:creator>bontesl</dc:creator>
      <dc:date>2017-11-24T10:31:35Z</dc:date>
    </item>
  </channel>
</rss>

