<?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: inputs.conf using batch in stanza in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-using-batch-in-stanza/m-p/189012#M37676</link>
    <description>&lt;P&gt;according to the description of "batch" in inputs.conf.spec , you should set move_policy = sinkhole .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;move_policy = sinkhole
* IMPORTANT: This attribute/value pair is required. You *must* include "move_policy = sinkhole" when defining batch inputs.
* This loads the file destructively.  
* Do not use the batch input type for files you do not want to consume destructively.
* As long as this is set, Splunk won't keep track of indexed files. Without the "move_policy = sinkhole" setting,  it won't load the files destructively and will keep a track of them.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Jun 2014 10:00:47 GMT</pubDate>
    <dc:creator>dmlee</dc:creator>
    <dc:date>2014-06-05T10:00:47Z</dc:date>
    <item>
      <title>inputs.conf using batch in stanza</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-using-batch-in-stanza/m-p/189011#M37675</link>
      <description>&lt;P&gt;If my forwarder's inputs.conf stanza line is set to batch instead of monitor, it will delete the file after it is indexed.&lt;/P&gt;

&lt;P&gt;Lets say my inputs.conf stanza is this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///home/bleung/tutorialdata]
disabled = false
index = tutorial
sourcetype = testing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the files there are deleted in that path and I put in a file there with the same data just different timestamps, will the forwarder still send data to the indexer?&lt;/P&gt;

&lt;P&gt;Scenario:&lt;BR /&gt;
I scp a file to the forward server and is oneshot'ed. Next day I scp a file with same data just different timestamps. The indexer does not receive any data for that day.&lt;/P&gt;

&lt;P&gt;Splunk version 5+&lt;BR /&gt;
Splunk forwarder version 5+&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2014 23:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-using-batch-in-stanza/m-p/189011#M37675</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2014-06-04T23:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf using batch in stanza</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-using-batch-in-stanza/m-p/189012#M37676</link>
      <description>&lt;P&gt;according to the description of "batch" in inputs.conf.spec , you should set move_policy = sinkhole .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;move_policy = sinkhole
* IMPORTANT: This attribute/value pair is required. You *must* include "move_policy = sinkhole" when defining batch inputs.
* This loads the file destructively.  
* Do not use the batch input type for files you do not want to consume destructively.
* As long as this is set, Splunk won't keep track of indexed files. Without the "move_policy = sinkhole" setting,  it won't load the files destructively and will keep a track of them.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-using-batch-in-stanza/m-p/189012#M37676</guid>
      <dc:creator>dmlee</dc:creator>
      <dc:date>2014-06-05T10:00:47Z</dc:date>
    </item>
  </channel>
</rss>

