<?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: Scripted Input Cron Schedule not working correctly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385581#M99247</link>
    <description>&lt;P&gt;There is an option to use Cron. However, as I found out, it wasn't very reliable. Reverted back to using "interval = seconds "&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 06:58:18 GMT</pubDate>
    <dc:creator>aknsun</dc:creator>
    <dc:date>2019-07-22T06:58:18Z</dc:date>
    <item>
      <title>Scripted Input Cron Schedule not working correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385576#M99242</link>
      <description>&lt;P&gt;I have the following inputs.conf for a scripted input. However this is not working as per what I thought it would. The first 2 scripts don't execute and the 3rd one, though it's scheduled to run at 00:30, runs at 00:05 which is basically the time set for the 1st script. Not sure what's happening. Didn't find any errors in _interanal.&lt;/P&gt;

&lt;P&gt;[script:///]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index = someindex&lt;BR /&gt;
interval = 5 0 * * *&lt;BR /&gt;
sourcetype = somesourcetype&lt;/P&gt;

&lt;P&gt;[script:///]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index = someindex&lt;BR /&gt;
interval = 15 0 * * *&lt;BR /&gt;
sourcetype = somesourcetype&lt;/P&gt;

&lt;P&gt;[script:///]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index = someindex&lt;BR /&gt;
interval = 30 0 * * *&lt;BR /&gt;
sourcetype = somesourcetype&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 03:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385576#M99242</guid>
      <dc:creator>aknsun</dc:creator>
      <dc:date>2019-07-12T03:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input Cron Schedule not working correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385577#M99243</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Are the times on the machine you're running the scripts set to the correct time? &lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 04:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385577#M99243</guid>
      <dc:creator>natalienguyen</dc:creator>
      <dc:date>2019-07-12T04:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input Cron Schedule not working correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385578#M99244</link>
      <description>&lt;P&gt;Yes, it's set to the correct time.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 04:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385578#M99244</guid>
      <dc:creator>aknsun</dc:creator>
      <dc:date>2019-07-12T04:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input Cron Schedule not working correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385579#M99245</link>
      <description>&lt;P&gt;Looks like it's removing the final 2 "*" in my interval setting.&lt;/P&gt;

&lt;P&gt;And I'm using &lt;A href="https://crontab.guru"&gt;https://crontab.guru&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 04:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385579#M99245</guid>
      <dc:creator>aknsun</dc:creator>
      <dc:date>2019-07-12T04:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input Cron Schedule not working correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385580#M99246</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;It looks like interval should just be number of seconds. Looks like you were trying to use a cron syntax.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/AdvancedDev/ScriptSetup"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/AdvancedDev/ScriptSetup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For example from the docs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/etc/apps/&amp;lt;appName&amp;gt;/bin/starter_script.sh]
disabled = true # change to false to start the input, requires restart
host = # enter hostname here
index = main
interval = 30    #frequency to run the script, in seconds
source = my_db
sourcetype = my_db_data
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 05:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385580#M99246</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2019-07-12T05:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input Cron Schedule not working correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385581#M99247</link>
      <description>&lt;P&gt;There is an option to use Cron. However, as I found out, it wasn't very reliable. Reverted back to using "interval = seconds "&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 06:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cron-Schedule-not-working-correctly/m-p/385581#M99247</guid>
      <dc:creator>aknsun</dc:creator>
      <dc:date>2019-07-22T06:58:18Z</dc:date>
    </item>
  </channel>
</rss>

