<?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: Why is the interval of 1 second not working in input.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337357#M62324</link>
    <description>&lt;P&gt;How can I ensure that the script is slow? &lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 08:42:08 GMT</pubDate>
    <dc:creator>kaushal28</dc:creator>
    <dc:date>2018-01-29T08:42:08Z</dc:date>
    <item>
      <title>Why is the interval of 1 second not working in input.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337355#M62322</link>
      <description>&lt;P&gt;I want to run my script at every second, so I set the interval to 1 second in input.conf file. But the script is not executed every second. So is there any minimum interval amount? Following is my input.conf file: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[amqp]
index = default
start_by_shell = false
sourcetype = amqp
interval = 1
reconnect = True
ssl_enabled = False

[amqp://input01]
interval = 1
reconnect = 1
source_url = 10.0.1.11:33037/examples
ssl_enabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 07:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337355#M62322</guid>
      <dc:creator>kaushal28</dc:creator>
      <dc:date>2018-01-29T07:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the interval of 1 second not working in input.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337356#M62323</link>
      <description>&lt;P&gt;From the documentation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;interval = [&amp;lt;number&amp;gt;|&amp;lt;cron schedule&amp;gt;]
* How often to run the specified command (in seconds), or a valid cron schedule.
* NOTE: when you specify a cron schedule, the input does not run the script on start-up.
* If you specify the interval as a number, it may have a fractional component; e.g., 3.14
* The cron implementation for data inputs does not currently support names of months or days.
* Defaults to 60.0 seconds.
* The special value 0 forces this scripted input to be run continuously; that is, as soon as the script exits, the input restarts it.
* The special value -1 causes the scripted input to run once on start-up.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is no minimum it seems. Maybe your script is not quick enough? Or maybe look at setting it to 0; then it starts again after the command exits.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 08:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337356#M62323</guid>
      <dc:creator>_karlo</dc:creator>
      <dc:date>2018-01-29T08:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the interval of 1 second not working in input.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337357#M62324</link>
      <description>&lt;P&gt;How can I ensure that the script is slow? &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 08:42:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-interval-of-1-second-not-working-in-input-conf/m-p/337357#M62324</guid>
      <dc:creator>kaushal28</dc:creator>
      <dc:date>2018-01-29T08:42:08Z</dc:date>
    </item>
  </channel>
</rss>

