<?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: How to set up a stanza batch to index same file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446090#M77583</link>
    <description>&lt;P&gt;The move_policy MUST be sinkhole for that to work as you want.&lt;/P&gt;

&lt;P&gt;move_policy = sinkhole&lt;BR /&gt;
* This setting is required. You &lt;EM&gt;must&lt;/EM&gt; include "move_policy = sinkhole" &lt;BR /&gt;
  when you define batch inputs.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:08:31 GMT</pubDate>
    <dc:creator>tiagofbmm</dc:creator>
    <dc:date>2020-09-30T01:08:31Z</dc:date>
    <item>
      <title>How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446089#M77582</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I set up my batch stanza to delete the file once indexed, but sometime, the file can't be due to permission error and the same file is indexed multiple time.&lt;/P&gt;

&lt;P&gt;I used both of the following options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;initCrcLength = 2000
crcSalt = 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the same file is still indexed again. &lt;BR /&gt;
How can I set up the stanza not to read the same file? &lt;BR /&gt;
Is that possible with batch stanza which deletes the files? (move_policy = sinkhole)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 12:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446089#M77582</guid>
      <dc:creator>arthurf</dc:creator>
      <dc:date>2019-07-01T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446090#M77583</link>
      <description>&lt;P&gt;The move_policy MUST be sinkhole for that to work as you want.&lt;/P&gt;

&lt;P&gt;move_policy = sinkhole&lt;BR /&gt;
* This setting is required. You &lt;EM&gt;must&lt;/EM&gt; include "move_policy = sinkhole" &lt;BR /&gt;
  when you define batch inputs.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446090#M77583</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2020-09-30T01:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446091#M77584</link>
      <description>&lt;P&gt;The move_policy is set.&lt;BR /&gt;
Here my actual configuration :&lt;/P&gt;

&lt;P&gt;[batch://&lt;EM&gt;FOLDER&lt;/EM&gt;/&lt;EM&gt;Pattern&lt;/EM&gt;]&lt;BR /&gt;
sourcetype = fluxeditique:cabestan:dtr:in:planapurement3&lt;BR /&gt;
index=cabestan&lt;BR /&gt;
initCrcLength = 2000&lt;BR /&gt;
move_policy = sinkhole&lt;/P&gt;

&lt;P&gt;I replaced "crcSalt = " with "initCrcLength = 2000" but the result is the same.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446091#M77584</guid>
      <dc:creator>arthurf</dc:creator>
      <dc:date>2019-07-01T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446092#M77585</link>
      <description>&lt;P&gt;CRC settings belong to the monitor::// stanzas, not the batch ones. &lt;/P&gt;

&lt;P&gt;It seems you need to take care of the deleting permissions of the files for Splunk user to be able to delete them.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 14:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446092#M77585</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2019-07-01T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446093#M77586</link>
      <description>&lt;P&gt;Ok, so if get you correctly, it's not possible to prevent the indexation of the same file with batch stanza ?&lt;BR /&gt;
And we need to ensure that the same log file is not generated twice, right ?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 15:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446093#M77586</guid>
      <dc:creator>arthurf</dc:creator>
      <dc:date>2019-07-01T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446094#M77587</link>
      <description>&lt;P&gt;Yes, with batch you don't get that possibility&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 15:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446094#M77587</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2019-07-01T15:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a stanza batch to index same file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446095#M77588</link>
      <description>&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;

&lt;P&gt;Have a good day.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-a-stanza-batch-to-index-same-file/m-p/446095#M77588</guid>
      <dc:creator>arthurf</dc:creator>
      <dc:date>2019-07-02T07:30:49Z</dc:date>
    </item>
  </channel>
</rss>

