<?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: Splunk python sdk - How to set custom time duration to run saved searches in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35778#M424</link>
    <description>&lt;P&gt;Sorry guys, I should have done some more research before posting the question. I did some poking around and got it to work. Here is what I set for duration:&lt;/P&gt;

&lt;P&gt;args = {"dispatch.earliest_time":"-100d"}&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2012 12:01:30 GMT</pubDate>
    <dc:creator>pinpoint</dc:creator>
    <dc:date>2012-11-15T12:01:30Z</dc:date>
    <item>
      <title>Splunk python sdk - How to set custom time duration to run saved searches</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35777#M423</link>
      <description>&lt;P&gt;Hi All - I am new to splunk python SDK and am stuck with running saved searches for custom durations. So far, using the splunk documentation and examples I am able to execute saved searches using the python SDK, however I couldn't find a way to set the earliest/latest time parameters. Whatever the value I set the default duration for the saved search is used. Here is a snippet of what I have so far :&lt;/P&gt;

&lt;P&gt;args = {"earliest_time":"-d60"}&lt;BR /&gt;
job = searchName.dispatch(**args)&lt;/P&gt;

&lt;P&gt;Tried this as well: args = {"earliestTime":"-d60"}&lt;/P&gt;

&lt;P&gt;Is there a way to set custom duration for saved searches using python sdk?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 11:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35777#M423</guid>
      <dc:creator>pinpoint</dc:creator>
      <dc:date>2012-11-15T11:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk python sdk - How to set custom time duration to run saved searches</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35778#M424</link>
      <description>&lt;P&gt;Sorry guys, I should have done some more research before posting the question. I did some poking around and got it to work. Here is what I set for duration:&lt;/P&gt;

&lt;P&gt;args = {"dispatch.earliest_time":"-100d"}&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 12:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35778#M424</guid>
      <dc:creator>pinpoint</dc:creator>
      <dc:date>2012-11-15T12:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk python sdk - How to set custom time duration to run saved searches</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35779#M425</link>
      <description>&lt;P&gt;Look at this example, specifically the format for earliest and latest times: &lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/SP-CAAAEE5#oneshotjob"&gt;http://dev.splunk.com/view/SP-CAAAEE5#oneshotjob&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This example shows how to set a time range in Python. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 19:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35779#M425</guid>
      <dc:creator>apruneda_splunk</dc:creator>
      <dc:date>2012-11-15T19:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk python sdk - How to set custom time duration to run saved searches</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35780#M426</link>
      <description>&lt;P&gt;Thanks for the link. The table 'Saved search parameters' had all the supported parameters.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 12:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-python-sdk-How-to-set-custom-time-duration-to-run-saved/m-p/35780#M426</guid>
      <dc:creator>pinpoint</dc:creator>
      <dc:date>2012-11-19T12:59:34Z</dc:date>
    </item>
  </channel>
</rss>

