<?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 Splunk DB Connect - Duplicate events in Rising column in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484695#M8665</link>
    <description>&lt;P&gt;I setup 3 DB inputs as part of our requirement to ingest DB logs. Problem is we're encountering duplicate events upon ingesting data to splunk. I can observe the duplicate events when there's no available data to be fetched from DB, Splunk DB connect up still use the last checkpoint value and keeps re-ingesting the data until it fetch new data in DB.&lt;/P&gt;

&lt;P&gt;Here's sample internal logs for how checkpoint value generates in 1 of the DB setup. Any idea where the issue and how to fix it.&lt;BR /&gt;
$SPLUNK_HOME/var/lib/splunk/modinputs/server/splunk_app_db_connect&lt;/P&gt;

&lt;P&gt;{"value":"2020-03-02 00:42:39.307","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T11:45:00.019+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:47:17.17","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T11:50:00.084+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:05:00.164+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:15:00.018+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:20:00.624+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:25:00.017+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:35:00.423+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 01:37:59.38","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:50:00.108+11:00"}&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:26:29 GMT</pubDate>
    <dc:creator>janmichael</dc:creator>
    <dc:date>2020-09-30T04:26:29Z</dc:date>
    <item>
      <title>Splunk DB Connect - Duplicate events in Rising column</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484695#M8665</link>
      <description>&lt;P&gt;I setup 3 DB inputs as part of our requirement to ingest DB logs. Problem is we're encountering duplicate events upon ingesting data to splunk. I can observe the duplicate events when there's no available data to be fetched from DB, Splunk DB connect up still use the last checkpoint value and keeps re-ingesting the data until it fetch new data in DB.&lt;/P&gt;

&lt;P&gt;Here's sample internal logs for how checkpoint value generates in 1 of the DB setup. Any idea where the issue and how to fix it.&lt;BR /&gt;
$SPLUNK_HOME/var/lib/splunk/modinputs/server/splunk_app_db_connect&lt;/P&gt;

&lt;P&gt;{"value":"2020-03-02 00:42:39.307","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T11:45:00.019+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:47:17.17","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T11:50:00.084+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:05:00.164+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:15:00.018+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:20:00.624+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:25:00.017+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 00:58:00.783","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:35:00.423+11:00"}&lt;BR /&gt;
{"value":"2020-03-02 01:37:59.38","appVersion":"3.1.4","columnType":93,"timestamp":"2020-03-02T12:50:00.108+11:00"}&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484695#M8665</guid>
      <dc:creator>janmichael</dc:creator>
      <dc:date>2020-09-30T04:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Duplicate events in Rising column</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484696#M8666</link>
      <description>&lt;P&gt;My first guess:&lt;/P&gt;

&lt;P&gt;When you set up the input, did you set it up to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE abc &amp;lt; ? ORDER BY abc DSC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or did you&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE abc &amp;lt;= ? ORDER BY abc DSC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would do it, and it's the only thing I can think of off hand. You use &lt;CODE&gt;&amp;gt;=&lt;/CODE&gt; (or &lt;CODE&gt;&amp;lt;=&lt;/CODE&gt;, whatever) instead of strictly &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; or &lt;CODE&gt;&amp;lt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484696#M8666</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-03-02T18:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Duplicate events in Rising column</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484697#M8667</link>
      <description>&lt;P&gt;Hi rich,&lt;/P&gt;

&lt;P&gt;It's currently set as WHERE login_time &amp;gt; ? ORDER BY login_time&lt;/P&gt;

&lt;P&gt;I already tried order by in DESC, but keep having duplicate events also. I implemented multiple DB inputs with diff connection type before but it's my first time to encounter duplicate events in rising column. &lt;/P&gt;

&lt;P&gt;I'm using the MS SQL as connection type now.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484697#M8667</guid>
      <dc:creator>janmichael</dc:creator>
      <dc:date>2020-09-30T04:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Duplicate events in Rising column</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484698#M8668</link>
      <description>&lt;P&gt;Well then, second guess.  The timestamp in MSSQL is higher precision than what Splunk is ... recovering?  Pulling in?  Receiving?  Whatever term you want to use.&lt;/P&gt;

&lt;P&gt;Can you confirm that the timestamp, when viewed in SQL Server Management Studio, is &lt;EM&gt;actually&lt;/EM&gt; &lt;CODE&gt;2020-03-02 00:58:00.783&lt;/CODE&gt; Because maybe it's actually, like &lt;CODE&gt;2020-03-02 00:58:00.783445&lt;/CODE&gt; and the timestamp specifier on the input needs to be made more precise?&lt;/P&gt;

&lt;P&gt;If that's not it, I may be out of simple ideas.  Or maybe not, let's see what happens.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 00:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/484698#M8668</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-03-03T00:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Duplicate events in Rising column</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/656912#M11173</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Has this issue been resolved, and if so, what was the solution?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 06:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-Duplicate-events-in-Rising-column/m-p/656912#M11173</guid>
      <dc:creator>zeel_ajadiya</dc:creator>
      <dc:date>2023-09-07T06:04:44Z</dc:date>
    </item>
  </channel>
</rss>

