<?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 Prevent duplicates from generic S3 input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Prevent-duplicates-from-generic-S3-input/m-p/519353#M87828</link>
    <description>&lt;P&gt;I've set up a generic S3 input and it's working pretty well. However, I sometimes get duplicate events.&lt;/P&gt;&lt;P&gt;I believe the issue is explained here:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;The S3 data input is not intended to read frequently modified files. If a file is modified after it has been indexed, the Splunk platform indexes the file again, resulting in duplicated data. Use key, blocklist, and allowlist options to instruct the add-on to index only those files that you know will not be modified later.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddOns/released/AWS/S3" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/AddOns/released/AWS/S3&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup involves S3 files that may be updated for a period of 5 minutes. After 5 minutes, they'll never be modified again. Let's start by assuming that I can't change that.&lt;/P&gt;&lt;P&gt;In the majority of cases, the file contents aren't actually changed - only the last modification date is changed.&lt;/P&gt;&lt;P&gt;I'd like the ability to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Only index files that are older than 5 minutes, or&lt;/LI&gt;&lt;LI&gt;Keep a CRC/hash of each file and only reindex if the hash changes, or&lt;/LI&gt;&lt;LI&gt;Keep track of which line we're up to in each file and only index appended lines&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;3 is ideal, 1 completely fixes the problem for me (at the cost of some indexing delay), 2 greatly reduces the problem (and I think Splunk already does this for local files?)&lt;/P&gt;&lt;P&gt;Is any of what I'm asking for possible? Or is there another solution to my problem?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 07:45:11 GMT</pubDate>
    <dc:creator>cbreezier</dc:creator>
    <dc:date>2020-09-14T07:45:11Z</dc:date>
    <item>
      <title>Prevent duplicates from generic S3 input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Prevent-duplicates-from-generic-S3-input/m-p/519353#M87828</link>
      <description>&lt;P&gt;I've set up a generic S3 input and it's working pretty well. However, I sometimes get duplicate events.&lt;/P&gt;&lt;P&gt;I believe the issue is explained here:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;The S3 data input is not intended to read frequently modified files. If a file is modified after it has been indexed, the Splunk platform indexes the file again, resulting in duplicated data. Use key, blocklist, and allowlist options to instruct the add-on to index only those files that you know will not be modified later.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/AddOns/released/AWS/S3" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/AddOns/released/AWS/S3&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup involves S3 files that may be updated for a period of 5 minutes. After 5 minutes, they'll never be modified again. Let's start by assuming that I can't change that.&lt;/P&gt;&lt;P&gt;In the majority of cases, the file contents aren't actually changed - only the last modification date is changed.&lt;/P&gt;&lt;P&gt;I'd like the ability to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Only index files that are older than 5 minutes, or&lt;/LI&gt;&lt;LI&gt;Keep a CRC/hash of each file and only reindex if the hash changes, or&lt;/LI&gt;&lt;LI&gt;Keep track of which line we're up to in each file and only index appended lines&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;3 is ideal, 1 completely fixes the problem for me (at the cost of some indexing delay), 2 greatly reduces the problem (and I think Splunk already does this for local files?)&lt;/P&gt;&lt;P&gt;Is any of what I'm asking for possible? Or is there another solution to my problem?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 07:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Prevent-duplicates-from-generic-S3-input/m-p/519353#M87828</guid>
      <dc:creator>cbreezier</dc:creator>
      <dc:date>2020-09-14T07:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent duplicates from generic S3 input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Prevent-duplicates-from-generic-S3-input/m-p/573286#M101415</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223881" target="_self"&gt;&lt;SPAN class=""&gt;cbreezier,&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Were you able to resolve this issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;I am also facing similar challenge for an deployed application where s3 files are getting frequently updated&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Nov 2021 09:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Prevent-duplicates-from-generic-S3-input/m-p/573286#M101415</guid>
      <dc:creator>atanu</dc:creator>
      <dc:date>2021-11-02T09:50:02Z</dc:date>
    </item>
  </channel>
</rss>

