<?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: Splunk re-indexing rolled over log file causing duplicate (two) copies of data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68963#M13958</link>
    <description>&lt;P&gt;It is a rename. &lt;BR /&gt;
Note: ZFS is underlying FS&lt;BR /&gt;
Each  process has a lot of threads that&lt;BR /&gt;
write to log files protected by a mutex. So only one thread can write at a time.&lt;BR /&gt;
When we see the file growing to exceed this size (~64MB), we acquire the mutex&lt;BR /&gt;
blocking any writes to the file, closing the file, deleting oldest generation N (BLAHFILENAME.N)&lt;BR /&gt;
then for (n = 0; n &amp;lt; N; n++) rename BLAHFILENAME.N to BLAHFILENAME.N+1&lt;BR /&gt;
then finally renaming current log file BLAHFILENAME to BLAHFILENAME.0&lt;BR /&gt;
then creating a new empty log file BLAHFILENAME and releasing the mutex&lt;BR /&gt;
allowing all threads to write to the new file.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2012 20:22:52 GMT</pubDate>
    <dc:creator>hmahendrakumar</dc:creator>
    <dc:date>2012-09-25T20:22:52Z</dc:date>
    <item>
      <title>Splunk re-indexing rolled over log file causing duplicate (two) copies of data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68959#M13954</link>
      <description>&lt;P&gt;We have a log file rotation policy that rolls over based on size (64MB). For some reason, every now and then (frequent but not all the time), splunk forwarder thinks the rolled over file is a new file and ships it again causing duplicates in the indexer.&lt;/P&gt;

&lt;P&gt;We would find the same event from filenames blah and blah.0 (rolledover file name).&lt;/P&gt;

&lt;P&gt;Any clues what might be causing this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68959#M13954</guid>
      <dc:creator>sfmandmdev</dc:creator>
      <dc:date>2012-09-24T21:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk re-indexing rolled over log file causing duplicate (two) copies of data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68960#M13955</link>
      <description>&lt;P&gt;Do you have any particular &lt;CODE&gt;crcSalt&lt;/CODE&gt; settings set in inputs.conf for this particular source?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68960#M13955</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-24T21:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk re-indexing rolled over log file causing duplicate (two) copies of data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68961#M13956</link>
      <description>&lt;P&gt;We don't have any crcSalt settings set. Also this does not happen all the time i.e All rolled over versions of the same log file are not duplicated.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2012 18:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68961#M13956</guid>
      <dc:creator>sfmandmdev</dc:creator>
      <dc:date>2012-09-25T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk re-indexing rolled over log file causing duplicate (two) copies of data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68962#M13957</link>
      <description>&lt;P&gt;How are you performing your roll-over?  It is a rename or a copy?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2012 20:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68962#M13957</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-09-25T20:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk re-indexing rolled over log file causing duplicate (two) copies of data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68963#M13958</link>
      <description>&lt;P&gt;It is a rename. &lt;BR /&gt;
Note: ZFS is underlying FS&lt;BR /&gt;
Each  process has a lot of threads that&lt;BR /&gt;
write to log files protected by a mutex. So only one thread can write at a time.&lt;BR /&gt;
When we see the file growing to exceed this size (~64MB), we acquire the mutex&lt;BR /&gt;
blocking any writes to the file, closing the file, deleting oldest generation N (BLAHFILENAME.N)&lt;BR /&gt;
then for (n = 0; n &amp;lt; N; n++) rename BLAHFILENAME.N to BLAHFILENAME.N+1&lt;BR /&gt;
then finally renaming current log file BLAHFILENAME to BLAHFILENAME.0&lt;BR /&gt;
then creating a new empty log file BLAHFILENAME and releasing the mutex&lt;BR /&gt;
allowing all threads to write to the new file.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2012 20:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-re-indexing-rolled-over-log-file-causing-duplicate-two/m-p/68963#M13958</guid>
      <dc:creator>hmahendrakumar</dc:creator>
      <dc:date>2012-09-25T20:22:52Z</dc:date>
    </item>
  </channel>
</rss>

