<?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 DB connect: How to avoid output duplicate data into database? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632745#M219808</link>
    <description>&lt;P&gt;Possibly. Do you compare your events with what is already in the database before pushing the new ones to the database?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 09:58:02 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-03-01T09:58:02Z</dc:date>
    <item>
      <title>Splunk DB connect: How to avoid output duplicate data into database?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632735#M219805</link>
      <description>&lt;P&gt;I am using Splunk DB connect to push my data from Splunk to oracle database. However, I can't not figure out how to avoid pushing same data into database. For example, if I specify earliest=-5m and make execution schedule every second, same data will be pushed into database. I have tried to set earliest=-5m and make execution schedule every 5 minutes. But it still have a little bug. Assume next execution time is 12:00:00, the time field in the data is 11:59:59 and upload to Splunk takes 2 seconds, then the time that data being stored in Splunk is 12:00:01. At this time, this data may not be pushed to databased since Splunk automatically catch the time in the time field of data. Anyone know how to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632735#M219805</guid>
      <dc:creator>amoswuchi</dc:creator>
      <dc:date>2023-03-01T09:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect: How to avoid output duplicate data into database?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632740#M219806</link>
      <description>&lt;P&gt;If you can uniquely identify the events, you could filter what you are about to write to the database against what is already in the database.&lt;/P&gt;&lt;P&gt;For example, using a summary index instead of a database&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index &amp;lt;source index&amp;gt;
...
| search NOT [search &amp;lt;target index&amp;gt;
              | fields &amp;lt;fields which uniquely identify events&amp;gt;]
| collect index=&amp;lt;target index&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632740#M219806</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-01T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect: How to avoid output duplicate data into database?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632743#M219807</link>
      <description>&lt;P&gt;Thanks for your reply. But when I get the unique events every time, Splunk still pushes these unique events repeatedly to database. Do I misunderstand something?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632743#M219807</guid>
      <dc:creator>amoswuchi</dc:creator>
      <dc:date>2023-03-01T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect: How to avoid output duplicate data into database?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632745#M219808</link>
      <description>&lt;P&gt;Possibly. Do you compare your events with what is already in the database before pushing the new ones to the database?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632745#M219808</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-01T09:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect: How to avoid output duplicate data into database?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632889#M219838</link>
      <description>&lt;P&gt;Yes. I have "ID" and "Time" fields which are the same in a table, and other fields are sensor data. I am not sure how to get unique event like this type of data.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 00:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632889#M219838</guid>
      <dc:creator>amoswuchi</dc:creator>
      <dc:date>2023-03-02T00:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect: How to avoid output duplicate data into database?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632946#M219868</link>
      <description>&lt;P&gt;OK so if you use a dbquery to retrieve the rows by ID and time, you would be able to tell if the event had already been stored in the database. Therefore, you can eliminate them and only send the remaining new events to the database.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 09:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-connect-How-to-avoid-output-duplicate-data-into/m-p/632946#M219868</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T09:18:44Z</dc:date>
    </item>
  </channel>
</rss>

