<?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: Events being indexed multiple times to different servers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502652#M100018</link>
    <description>&lt;P&gt;ADDITIONAL INFORMATION:&lt;/P&gt;

&lt;P&gt;We're seeing a time frame correlation between "WatchedFile - Will begin reading at offset=..." and the time frames involved in the duplicate indexing. &lt;/P&gt;

&lt;P&gt;My running theory is that the WatchedFile component is starting at an incorrect file offset, resulting in re-indexing of all events between assigned offset time and the time the WatchedFile component actually started reading. "IgnoreOlderThan" flag in inputs.conf may be playing a part if buckets are cleared on shutoff, the offset wouldn't matter and would re-index entire file daily.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 20:18:22 GMT</pubDate>
    <dc:creator>chodgens</dc:creator>
    <dc:date>2019-12-09T20:18:22Z</dc:date>
    <item>
      <title>Events being indexed multiple times to different servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502651#M100017</link>
      <description>&lt;P&gt;I'm looking for possible reasons a single event would be indexed numerous times on our main indexers from our heavy forwarders. We have ignoreOlderThan set to 1d, but from the looks of it the file watcher is indexing events multiple times within a 10-20 minute period, around an hour after the event occurs, both before and after reboot. I've verified that the source file only contains 1 of each event, but our forwarders seem to be pushing multiple copies to the indexer and are showing up as duplicates in our counts. The servers that index the data are showing as different between the index times&lt;/P&gt;

&lt;P&gt;Example of issue:&lt;BR /&gt;
_time value = 2019-12-08 11:31:17.116&lt;BR /&gt;
index timestamps/servers indexed = &lt;BR /&gt;
indexer 3  -12/08/2019 04:27:51, 12/08/2019 05:36:19&lt;BR /&gt;
indexer 8  -12/08/2019 06:39:04, 12/09/2019 05:40:10, 12/09/2019 06:47:59&lt;BR /&gt;
indexer 9  -12/08/2019 07:45:06, 12/09/2019 07:34:19&lt;BR /&gt;
indexer 10-12/08/2019 08:24:10, 12/09/2019 03:55:23&lt;/P&gt;

&lt;P&gt;inputs.conf segment - &lt;BR /&gt;
[monitor:///var/log/]&lt;/P&gt;

&lt;P&gt;index = indexers&lt;BR /&gt;
sourcetype = sourcetype&lt;BR /&gt;
ignoreOlderThan = 1d&lt;/P&gt;

&lt;P&gt;outputs.conf segment - &lt;BR /&gt;
[tcpout]&lt;/P&gt;

&lt;H1&gt;Turn off indexing on the local machine, we want the items indexed at the main indexers.&lt;/H1&gt;

&lt;P&gt;indexAndForward = false&lt;/P&gt;

&lt;H1&gt;Define which group of indexers we are sending to. We currently only have one.&lt;/H1&gt;

&lt;P&gt;defaultGroup = primary_indexers&lt;BR /&gt;
maxQueueSize = 250MB&lt;/P&gt;

&lt;P&gt;[tcpout:primary_indexers]&lt;/P&gt;

&lt;P&gt;server = servers&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
forceTimebasedAutoLB = true&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502651#M100017</guid>
      <dc:creator>chodgens</dc:creator>
      <dc:date>2019-12-09T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Events being indexed multiple times to different servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502652#M100018</link>
      <description>&lt;P&gt;ADDITIONAL INFORMATION:&lt;/P&gt;

&lt;P&gt;We're seeing a time frame correlation between "WatchedFile - Will begin reading at offset=..." and the time frames involved in the duplicate indexing. &lt;/P&gt;

&lt;P&gt;My running theory is that the WatchedFile component is starting at an incorrect file offset, resulting in re-indexing of all events between assigned offset time and the time the WatchedFile component actually started reading. "IgnoreOlderThan" flag in inputs.conf may be playing a part if buckets are cleared on shutoff, the offset wouldn't matter and would re-index entire file daily.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502652#M100018</guid>
      <dc:creator>chodgens</dc:creator>
      <dc:date>2019-12-09T20:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Events being indexed multiple times to different servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502653#M100019</link>
      <description>&lt;P&gt;Are those indexed times the times of &lt;EM&gt;that&lt;/EM&gt; particular event being indexed?  Why the different times?  (Or are they actually just "reindexed examples" and not examples of that particular event being reindexed?)&lt;/P&gt;

&lt;P&gt;Also can you confirm that the file absolutely doesn't change in the first few hundred characters?  Because my first real guess is that something rewrites a header line in that file, and thus Splunk thinks it's a new file.  &lt;/P&gt;

&lt;P&gt;Is it just a typo that inputs.conf says index=indexers, but the table of values has index=indexer?&lt;/P&gt;

&lt;P&gt;Lastly, these appear to be heavy forwarders - why not UF?  (And if I'm wrong there, no worries).&lt;/P&gt;

&lt;P&gt;Your theory is probably right, but why?  That's the question.  I've seen this happen on high-load boxes, too, when there's too many files to monitor properly in one stanza.  have you thought to break up the one big stanza into a lot of little ones?  How many files are being tailed at any one time?&lt;/P&gt;

&lt;P&gt;-Rich&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-being-indexed-multiple-times-to-different-servers/m-p/502653#M100019</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2019-12-10T19:35:18Z</dc:date>
    </item>
  </channel>
</rss>

