<?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: Configure delay in batch input?  time_to_close does not work (v6.0.5) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167130#M33838</link>
    <description>&lt;P&gt;Was there ever an answer to this?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2016 00:31:05 GMT</pubDate>
    <dc:creator>jlaigo2</dc:creator>
    <dc:date>2016-09-28T00:31:05Z</dc:date>
    <item>
      <title>Configure delay in batch input?  time_to_close does not work (v6.0.5)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167129#M33837</link>
      <description>&lt;P&gt;Batch configured inputs are getting deleted before they can be indexed.  I tried configuring time_to_close in inputs.conf but Splunk complains that the configuration is invalid.  I'm assuming due to using it with batch vs monitor input.&lt;/P&gt;

&lt;P&gt;Is there any other way to delay the deletion of the file?  Seems to be Splunk is unable to consume it before the move policy to sinkhole kicks in.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///data/*.csv]
index=main
sourcetype=csv
move_policy = sinkhole
time_before_close = 300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On restart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Checking conf files for problems...
    Invalid key in stanza [batch:///data/*.csv] in /opt/splunk/etc/system/local/inputs.conf, line 5: time_before_close  (value:  300)
    Your indexes and inputs configurations are not internally consistent. For more information, run 'splunk btool check --debug'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167129#M33837</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2020-09-28T19:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Configure delay in batch input?  time_to_close does not work (v6.0.5)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167130#M33838</link>
      <description>&lt;P&gt;Was there ever an answer to this?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 00:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167130#M33838</guid>
      <dc:creator>jlaigo2</dc:creator>
      <dc:date>2016-09-28T00:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Configure delay in batch input?  time_to_close does not work (v6.0.5)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167131#M33839</link>
      <description>&lt;P&gt;the error doesnt necessarily mean that its not working, rather, that the configuration is not present in the .conf file. &lt;BR /&gt;
time_before_close does work for a regular input, and it might be the case that it will work for batch too. &lt;BR /&gt;
try it for a while, and maybe do test it with writing to a file and take a break, and then write again, what's it do?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-delay-in-batch-input-time-to-close-does-not-work-v6-0/m-p/167131#M33839</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2020-09-29T11:28:28Z</dc:date>
    </item>
  </channel>
</rss>

