<?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 Is it possible to find when the next scheduled run of a scripted input will occur? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176321#M35346</link>
    <description>&lt;P&gt;Is it possible to find the time of the next scheduled run of a scripted input from within Splunk? &lt;/P&gt;

&lt;P&gt;The Searches, reports and alerts in Settings has a column for Scheduled time, which appears to be the time of the next execution of the item. &lt;/P&gt;

&lt;P&gt;In the S.o.S app the Data Inputs Overview dashboard there are fields for endtime and interval when you select a specific input, and using these I could calculate the next scheduled run time. Similarly the endtime and interval fields are available with the REST API data/inputs/script. The calculation is quite simple when the interval is a number of seconds but is more difficult when the interval is provided as a cron schedule.&lt;/P&gt;

&lt;P&gt;I was looking for a solution that returned something like the Scheduled time field from the Searches, reports and alerts screen but for scripted inputs.&lt;/P&gt;

&lt;P&gt;Dave &lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2014 16:46:57 GMT</pubDate>
    <dc:creator>davebrooking</dc:creator>
    <dc:date>2014-08-08T16:46:57Z</dc:date>
    <item>
      <title>Is it possible to find when the next scheduled run of a scripted input will occur?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176321#M35346</link>
      <description>&lt;P&gt;Is it possible to find the time of the next scheduled run of a scripted input from within Splunk? &lt;/P&gt;

&lt;P&gt;The Searches, reports and alerts in Settings has a column for Scheduled time, which appears to be the time of the next execution of the item. &lt;/P&gt;

&lt;P&gt;In the S.o.S app the Data Inputs Overview dashboard there are fields for endtime and interval when you select a specific input, and using these I could calculate the next scheduled run time. Similarly the endtime and interval fields are available with the REST API data/inputs/script. The calculation is quite simple when the interval is a number of seconds but is more difficult when the interval is provided as a cron schedule.&lt;/P&gt;

&lt;P&gt;I was looking for a solution that returned something like the Scheduled time field from the Searches, reports and alerts screen but for scripted inputs.&lt;/P&gt;

&lt;P&gt;Dave &lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 16:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176321#M35346</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2014-08-08T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to find when the next scheduled run of a scripted input will occur?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176322#M35347</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/data/inputs/script | eval nextScheduletime=starttime+interval | table title disabled starttime interval nextScheduletime source sourcetype | convert ctime(*time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Aug 2014 20:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176322#M35347</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-08T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to find when the next scheduled run of a scripted input will occur?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176323#M35348</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;

&lt;P&gt;This works as expected when the interval is a number of seconds, but doesn't work if the interval is a cron schedule e.g. * 1 * * * . I tested in a 6.1.1 Splunk instance.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2014 06:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-find-when-the-next-scheduled-run-of-a-scripted/m-p/176323#M35348</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2014-08-09T06:26:58Z</dc:date>
    </item>
  </channel>
</rss>

