<?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 Why am I getting a HTTP 503 error when using threads to call oneShotSearch and maximum number of concurrent historical searches? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-a-HTTP-503-error-when-using-threads-to-call/m-p/370252#M67190</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am using the Java splunk api service to make oneShotSearch calls for service data. &lt;BR /&gt;
HTTP 503 response: &lt;CODE&gt;Search not executed: The maximum number of concurrent historical searches on this instance has been reached.", concurrency_category="historical", concurrency_context="instance-wide", current_concurrency=34, concurrency_limit=34&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What I am doing is creating multiple threads which perform the Service#oneshotSearch in given time intervals. It runs normally, but eventually, I get the HTTP 503 above error. I am not that familiar with Splunk (mainly focusing on the Java code) so could someone please elaborate on what this exactly means?&lt;/P&gt;

&lt;P&gt;I am confused what exactly instance is referring to, is this referring to a specific host included in the queries, or is this referring to my own user searches once I am logged in? I do not have 34 threads, so are they getting backed up and queued through the api?&lt;/P&gt;

&lt;P&gt;If anyone could please provide me with some details on this error to help troubleshoot, I would greatly appreciate it. Thank You!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 18:15:29 GMT</pubDate>
    <dc:creator>Aweave15</dc:creator>
    <dc:date>2018-02-08T18:15:29Z</dc:date>
    <item>
      <title>Why am I getting a HTTP 503 error when using threads to call oneShotSearch and maximum number of concurrent historical searches?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-a-HTTP-503-error-when-using-threads-to-call/m-p/370252#M67190</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am using the Java splunk api service to make oneShotSearch calls for service data. &lt;BR /&gt;
HTTP 503 response: &lt;CODE&gt;Search not executed: The maximum number of concurrent historical searches on this instance has been reached.", concurrency_category="historical", concurrency_context="instance-wide", current_concurrency=34, concurrency_limit=34&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What I am doing is creating multiple threads which perform the Service#oneshotSearch in given time intervals. It runs normally, but eventually, I get the HTTP 503 above error. I am not that familiar with Splunk (mainly focusing on the Java code) so could someone please elaborate on what this exactly means?&lt;/P&gt;

&lt;P&gt;I am confused what exactly instance is referring to, is this referring to a specific host included in the queries, or is this referring to my own user searches once I am logged in? I do not have 34 threads, so are they getting backed up and queued through the api?&lt;/P&gt;

&lt;P&gt;If anyone could please provide me with some details on this error to help troubleshoot, I would greatly appreciate it. Thank You!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-a-HTTP-503-error-when-using-threads-to-call/m-p/370252#M67190</guid>
      <dc:creator>Aweave15</dc:creator>
      <dc:date>2018-02-08T18:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a HTTP 503 error when using threads to call oneShotSearch and maximum number of concurrent historical searches?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-a-HTTP-503-error-when-using-threads-to-call/m-p/370253#M67191</link>
      <description>&lt;P&gt;Open the job inspector (top right menu) and check how many searches are running.&lt;BR /&gt;
You may have scheduled searches running&lt;BR /&gt;
there are 2 limits that may kick in :&lt;BR /&gt;
- quota of number of concurrent searches per user (see the roles, and authorize.conf)&lt;BR /&gt;
- quota of the system maximum number of concurrent searches (see number of cores and limits.conf)&lt;/P&gt;

&lt;P&gt;And those limits are different for historical searches and real time searches.&lt;BR /&gt;
see &lt;A href="http://wiki.splunk.com/Community:TroubleshootingSearchQuotas"&gt;http://wiki.splunk.com/Community:TroubleshootingSearchQuotas&lt;/A&gt;&lt;BR /&gt;
have a look at &lt;A href="https://answers.splunk.com/answers/607068/the-maximum-number-of-concurrent-historical-search.html"&gt;https://answers.splunk.com/answers/607068/the-maximum-number-of-concurrent-historical-search.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-a-HTTP-503-error-when-using-threads-to-call/m-p/370253#M67191</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-08T18:45:00Z</dc:date>
    </item>
  </channel>
</rss>

