<?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: Modify 'splunkdConnectionTimeout' variable from my Splunk app. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655940#M11162</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260075"&gt;@priyanshuraj400&lt;/a&gt;&amp;nbsp;- I'm assuming you are using the `rest.&lt;STRONG&gt;simpleRequest&lt;/STRONG&gt;` method.&lt;/P&gt;&lt;P&gt;In there, you can pass a parameter called &lt;STRONG&gt;timeout&lt;/STRONG&gt;. For example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rest.simpleRequest(apiPath, sessionKey=mySessionKey, method='GET', timeout=None)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 10:20:12 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2023-08-29T10:20:12Z</dc:date>
    <item>
      <title>How to Modify 'splunkdConnectionTimeout' variable from my Splunk app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655909#M11161</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have created a Splunk app and it is currently in marketplace. I am getting a timeout error while pulling data from my API into Splunk app. Upon investigation, I figured out that I need to increase 'splunkdConnectionTimeout' from 30 sec to a higher value, in&amp;nbsp;`$ SPLUNK_HOME /lib /python3.7 /site-packages /splunk /rest /__ init__. py’, line number 52.&lt;/P&gt;
&lt;P&gt;I want to modify this as and when the user installs my app, this modification should be applied upon restarting the splunk.&lt;/P&gt;
&lt;P&gt;I tried doing this by using `web. conf` file in my app but I am not sure where and how to use this.&lt;/P&gt;
&lt;P&gt;Please help me how can I do this.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655909#M11161</guid>
      <dc:creator>priyanshuraj400</dc:creator>
      <dc:date>2023-08-30T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modify 'splunkdConnectionTimeout' variable from my Splunk app.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655940#M11162</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260075"&gt;@priyanshuraj400&lt;/a&gt;&amp;nbsp;- I'm assuming you are using the `rest.&lt;STRONG&gt;simpleRequest&lt;/STRONG&gt;` method.&lt;/P&gt;&lt;P&gt;In there, you can pass a parameter called &lt;STRONG&gt;timeout&lt;/STRONG&gt;. For example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rest.simpleRequest(apiPath, sessionKey=mySessionKey, method='GET', timeout=None)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 10:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655940#M11162</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-08-29T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify 'splunkdConnectionTimeout' variable from my Splunk app.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655948#M11164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;,&lt;BR /&gt;Yes, that is what I want to set. If you look into&amp;nbsp;&lt;SPAN&gt;`$ SPLUNK_HOME /lib /python3.7 /site-packages /splunk /rest /__ init__. py’, line number 52, you will find a parameter 'splunkdConnectionTimeout'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe if somehow I can set this parameter from outside, I will be able to increase the timeout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Upon going through documentation, I found out 'web.conf' might be a way to do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.0/Admin/Webconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.0/Admin/Webconf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in this documentation, you will find the&amp;nbsp;'splunkdConnectionTimeout' parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I am unable to figure out that how to use this config file through app. Basically I need to set this varibale timeout through my app only, there should be no external effort.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If there is any other way to do it, I am open to that also.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 10:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655948#M11164</guid>
      <dc:creator>priyanshuraj400</dc:creator>
      <dc:date>2023-08-29T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify 'splunkdConnectionTimeout' variable from my Splunk app.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655958#M11166</link>
      <description>&lt;P&gt;As I mentioned that timeout is for rest.&lt;STRONG&gt;simpleRequest()&lt;/STRONG&gt; and not for the custom rest endpoint you might have in your App.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For setting that parameter for your custom Rest Handler, you can set it under &lt;STRONG&gt;web.conf&lt;/STRONG&gt; under your Rest handler's stanza, you can add that parameter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunkdConnectionTimeout = 120&lt;/LI-CODE&gt;&lt;P&gt;(For reference -&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-do-I-change-the-REST-API-execution-timeout/m-p/295689" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-do-I-change-the-REST-API-execution-timeout/m-p/295689&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!! Kindly upvote if it does!!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655958#M11166</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-08-29T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modify 'splunkdConnectionTimeout' variable from my Splunk app.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655975#M11168</link>
      <description>&lt;P&gt;I understand&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;, but my question is, I have to set web.conf manually, right?&lt;BR /&gt;Is there any way that my app do that automatically?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655975#M11168</guid>
      <dc:creator>priyanshuraj400</dc:creator>
      <dc:date>2023-08-29T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modify 'splunkdConnectionTimeout' variable from my Splunk app.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655999#M11169</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260075"&gt;@priyanshuraj400&lt;/a&gt;&amp;nbsp;- You need to add this parameter inside your App's web.conf manually.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 17:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Modify-splunkdConnectionTimeout-variable-from-my-Splunk/m-p/655999#M11169</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-08-29T17:10:26Z</dc:date>
    </item>
  </channel>
</rss>

