<?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: How many times it executes splunk search and export using python rest api ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402201#M71557</link>
    <description>&lt;P&gt;I believe we're talking about the same thing. I mentioned where it is in the conf file and I think you found where it is in the UI. Let's see if I can get some developers to peek at this as well.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 14:27:45 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2019-07-23T14:27:45Z</dc:date>
    <item>
      <title>How many times it executes splunk search and export using python rest api ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402196#M71552</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;
I am writing a python rest api script to search and export csv results to a location. &lt;BR /&gt;
I got the session key for the below query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     serviceContent=httplib2.Http.request(...)
     sessionkey = minidom.parseString(serviceContent).getElementsByTagName('sessionKey')[0].childNodes[0].nodeValue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And using this session key, i am writing a infinite while loop to execute search and import csv file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  while true:
           ...
         #splunk Search using the Session key and got job id here
         #Get results &amp;amp; Export to CSV statement here
         #time.sleep(60) statement here to run the search every minute
         ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My query is how many times the while look will get executed with the Session key?&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2019 23:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402196#M71552</guid>
      <dc:creator>poorni_p</dc:creator>
      <dc:date>2019-07-20T23:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How many times it executes splunk search and export using python rest api ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402197#M71553</link>
      <description>&lt;P&gt;An infinite number of times?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 15:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402197#M71553</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-21T15:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How many times it executes splunk search and export using python rest api ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402198#M71554</link>
      <description>&lt;P&gt;I think the question is how long do session keys persist before getting expired.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402198#M71554</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-07-22T16:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How many times it executes splunk search and export using python rest api ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402199#M71555</link>
      <description>&lt;P&gt;I can't validate this but I wonder if it would be defined by the &lt;CODE&gt;sessionTimeout&lt;/CODE&gt; property of server.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
sessionTimeout = &amp;lt;nonnegative integer&amp;gt;[s|m|h|d]
* The amount of time before a user session times out, expressed as a
  search-like time range.
* Examples include "24h" (24 hours), "3d" (3 days),
  "7200s" (7200 seconds, or two hours)
* Default: "1" (1 hour)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if the session is active then it may never expire because I believe this is more about inactive sessions.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402199#M71555</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-07-22T16:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How many times it executes splunk search and export using python rest api ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402200#M71556</link>
      <description>&lt;P&gt;@SloshBurch&lt;BR /&gt;
Not sure about server.conf, but i guess this can be defined in Settings in the upper right-hand corner -&amp;gt; Server settings -&amp;gt; Click General settings -&amp;gt; Session timeout.&lt;/P&gt;

&lt;P&gt;any thoughts ?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 22:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402200#M71556</guid>
      <dc:creator>poorni_p</dc:creator>
      <dc:date>2019-07-22T22:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How many times it executes splunk search and export using python rest api ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402201#M71557</link>
      <description>&lt;P&gt;I believe we're talking about the same thing. I mentioned where it is in the conf file and I think you found where it is in the UI. Let's see if I can get some developers to peek at this as well.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-many-times-it-executes-splunk-search-and-export-using-python/m-p/402201#M71557</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-07-23T14:27:45Z</dc:date>
    </item>
  </channel>
</rss>

