<?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: REST api export hangs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-api-export-hangs/m-p/393348#M70240</link>
    <description>&lt;P&gt;Based on the description,  the sessionTimeout should be configured longer than the search runtime.&lt;BR /&gt;
Can you try sessionTimeout=2h?&lt;/P&gt;

&lt;P&gt;Under server.conf&lt;BR /&gt;
[general]&lt;BR /&gt;
sessionTimeout = [s|m|h|d]&lt;BR /&gt;
* The amount of time before a user session times out, expressed as a search-like time range.&lt;BR /&gt;
* Examples include "24h" (24 hours), "3d" (3 days), "7200s" (7200 seconds, or two hours)&lt;BR /&gt;
* Default: "1h" (1 hour)&lt;/P&gt;

&lt;P&gt;Also, It's worth while considering to increase timeout value below:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Webconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Webconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;server.socket_timeout = &lt;BR /&gt;
* The timeout, in seconds, for accepted connections between the browser and Splunk Web&lt;BR /&gt;
* Default: 10&lt;/P&gt;

&lt;P&gt;export_timeout = &lt;BR /&gt;
* When exporting results, the number of seconds the server waits before closing the connection with splunkd. &lt;BR /&gt;
* If you do not set a value for export_timeout, Splunk Web uses the value for the 'splunkdConnectionTimeout' setting.&lt;BR /&gt;
* Set 'export_timeout' to a value greater than 30 in normal operations.&lt;BR /&gt;
* No default.&lt;/P&gt;

&lt;P&gt;Splunk will be logging the REST API export activities in the splunkd_access.log&lt;/P&gt;

&lt;P&gt;Hope it help.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:00:31 GMT</pubDate>
    <dc:creator>dchoi_splunk</dc:creator>
    <dc:date>2020-09-30T01:00:31Z</dc:date>
    <item>
      <title>REST api export hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-api-export-hangs/m-p/393347#M70239</link>
      <description>&lt;P&gt;I'm using the REST API search/jobs/export search endpoint.  The search takes over an hour to complete successfully (I can view through the Spunk GUI), but when it finishes the results are not sent back via the api call.  Curl is just stuck waiting for the results.  No timeout or connect errors are reported back from the api.  The same query works on every index we have, except one of our larger indexes.  I'm assuming that some sort of timeout threshold is reached, but I would have expected an error back from the api.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 20:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-api-export-hangs/m-p/393347#M70239</guid>
      <dc:creator>conklirb</dc:creator>
      <dc:date>2019-04-08T20:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST api export hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-api-export-hangs/m-p/393348#M70240</link>
      <description>&lt;P&gt;Based on the description,  the sessionTimeout should be configured longer than the search runtime.&lt;BR /&gt;
Can you try sessionTimeout=2h?&lt;/P&gt;

&lt;P&gt;Under server.conf&lt;BR /&gt;
[general]&lt;BR /&gt;
sessionTimeout = [s|m|h|d]&lt;BR /&gt;
* The amount of time before a user session times out, expressed as a search-like time range.&lt;BR /&gt;
* Examples include "24h" (24 hours), "3d" (3 days), "7200s" (7200 seconds, or two hours)&lt;BR /&gt;
* Default: "1h" (1 hour)&lt;/P&gt;

&lt;P&gt;Also, It's worth while considering to increase timeout value below:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Webconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Webconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;server.socket_timeout = &lt;BR /&gt;
* The timeout, in seconds, for accepted connections between the browser and Splunk Web&lt;BR /&gt;
* Default: 10&lt;/P&gt;

&lt;P&gt;export_timeout = &lt;BR /&gt;
* When exporting results, the number of seconds the server waits before closing the connection with splunkd. &lt;BR /&gt;
* If you do not set a value for export_timeout, Splunk Web uses the value for the 'splunkdConnectionTimeout' setting.&lt;BR /&gt;
* Set 'export_timeout' to a value greater than 30 in normal operations.&lt;BR /&gt;
* No default.&lt;/P&gt;

&lt;P&gt;Splunk will be logging the REST API export activities in the splunkd_access.log&lt;/P&gt;

&lt;P&gt;Hope it help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-api-export-hangs/m-p/393348#M70240</guid>
      <dc:creator>dchoi_splunk</dc:creator>
      <dc:date>2020-09-30T01:00:31Z</dc:date>
    </item>
  </channel>
</rss>

