<?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 Avoid indexing same file multiple times batch input in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492976#M24500</link>
    <description>&lt;P&gt;I have batch input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch://C:\abc\*.zip]
move_policy = sinkhole
index = xyz
host_segment = 2
crcSalt = &amp;lt;SOURCE&amp;gt;
sourcetype = pqr
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for testing I added one zip file in monitored folder after consumed by splunk I again added same file in monitored folder and I found duplicate events. I was assumed that it will not index same file since I have included &lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;. What can be done avoid duplication? &lt;/P&gt;

&lt;P&gt;Note- file monitored is zip- csv file with headers.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2019 10:27:06 GMT</pubDate>
    <dc:creator>ips_mandar</dc:creator>
    <dc:date>2019-10-04T10:27:06Z</dc:date>
    <item>
      <title>Avoid indexing same file multiple times batch input</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492976#M24500</link>
      <description>&lt;P&gt;I have batch input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch://C:\abc\*.zip]
move_policy = sinkhole
index = xyz
host_segment = 2
crcSalt = &amp;lt;SOURCE&amp;gt;
sourcetype = pqr
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for testing I added one zip file in monitored folder after consumed by splunk I again added same file in monitored folder and I found duplicate events. I was assumed that it will not index same file since I have included &lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;. What can be done avoid duplication? &lt;/P&gt;

&lt;P&gt;Note- file monitored is zip- csv file with headers.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 10:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492976#M24500</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-10-04T10:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid indexing same file multiple times batch input</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492977#M24501</link>
      <description>&lt;P&gt;Hi ips_mandar&lt;BR /&gt;
file names in zip files are the same or different?&lt;BR /&gt;
both the times you had files in zip?&lt;BR /&gt;
&lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; guarantees that you don't index twice files with the same name, but if you have the same filename with a different path you have two files.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492977#M24501</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-04T11:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid indexing same file multiple times batch input</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492978#M24502</link>
      <description>&lt;P&gt;Hi @gcusello,&lt;BR /&gt;
I am manually copying same zip file to monitor directory and number of times I am pasting files in monitored folder same number of times it is duplicating events with same source.&lt;BR /&gt;
and zip file name and inside file name are same .&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492978#M24502</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-10-04T11:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid indexing same file multiple times batch input</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492979#M24503</link>
      <description>&lt;P&gt;Not sure if it works for batch input since it works for monitor input.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492979#M24503</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-10-04T11:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid indexing same file multiple times batch input</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492980#M24504</link>
      <description>&lt;P&gt;Any idea anyone to avoid indexing same file multiple time in batch input?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 05:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Avoid-indexing-same-file-multiple-times-batch-input/m-p/492980#M24504</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-10-07T05:55:16Z</dc:date>
    </item>
  </channel>
</rss>

