<?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: In my current batch stanza in inputs.conf, why is the file indexed twice? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353190#M64684</link>
    <description>&lt;P&gt;Yes, the 2.txt was removed after it was indexed.&lt;BR /&gt;
2.txt is indexed twice, and both of the sourcetype are shinsei_db_audit_utf8.&lt;/P&gt;

&lt;P&gt;If I move "&lt;EM&gt;" from Line 6, [monitor://C:\Splunk\log_SME&lt;/EM&gt;.log]. This phenomenon will not happen.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:58:56 GMT</pubDate>
    <dc:creator>xiyangyang</dc:creator>
    <dc:date>2020-09-29T13:58:56Z</dc:date>
    <item>
      <title>In my current batch stanza in inputs.conf, why is the file indexed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353188#M64682</link>
      <description>&lt;P&gt;My inputs.conf is as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch://C:\Splunk\2.txt]
index = netiq
move_policy = sinkhole
sourcetype = shinsei_db_audit_utf8

[monitor://C:\Splunk\log_SME*.log]
disabled = false
followTail = 0
ignoreOlderThan = 100d
index = netiq
sourcetype = shinsei_common_shift_jis
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With this inputs.conf, the batch stanza object 2.txt is indexed twice every time.&lt;BR /&gt;
If I remove the whole monitor part, the 2.txt is indexed once.&lt;/P&gt;

&lt;P&gt;What is the reason of it being indexed twice?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 02:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353188#M64682</guid>
      <dc:creator>xiyangyang</dc:creator>
      <dc:date>2017-04-28T02:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: In my current batch stanza in inputs.conf, why is the file indexed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353189#M64683</link>
      <description>&lt;P&gt;You're using batch stanza, is the file 2.txt deleted after indexing ?&lt;/P&gt;

&lt;P&gt;As you mentioned, it's indexed twice, what's the source type of them ?  Is it one from shinsei_common_shift_jis and other form shinsei_db_audit_utf8 ? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353189#M64683</guid>
      <dc:creator>tlam_splunk</dc:creator>
      <dc:date>2020-09-29T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: In my current batch stanza in inputs.conf, why is the file indexed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353190#M64684</link>
      <description>&lt;P&gt;Yes, the 2.txt was removed after it was indexed.&lt;BR /&gt;
2.txt is indexed twice, and both of the sourcetype are shinsei_db_audit_utf8.&lt;/P&gt;

&lt;P&gt;If I move "&lt;EM&gt;" from Line 6, [monitor://C:\Splunk\log_SME&lt;/EM&gt;.log]. This phenomenon will not happen.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353190#M64684</guid>
      <dc:creator>xiyangyang</dc:creator>
      <dc:date>2020-09-29T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: In my current batch stanza in inputs.conf, why is the file indexed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353191#M64685</link>
      <description>&lt;P&gt;Yes, the 2.txt was removed after it was indexed.&lt;BR /&gt;
2.txt is indexed twice, and both of the sourcetype are shinsei_db_audit_utf8.&lt;/P&gt;

&lt;P&gt;If I move "&lt;EM&gt;" from Line 6, [monitor://C:\Splunk\log_SME&lt;/EM&gt;.log]. This phenomenon will not happen.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-my-current-batch-stanza-in-inputs-conf-why-is-the-file/m-p/353191#M64685</guid>
      <dc:creator>xiyangyang</dc:creator>
      <dc:date>2020-09-29T13:59:04Z</dc:date>
    </item>
  </channel>
</rss>

