<?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: dedup events with same timestamp ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471103#M132520</link>
    <description>&lt;P&gt;Hi pgadhari,&lt;BR /&gt;
sorry but I don't understand probably there's something I missed in translaction: if you want all the events why do you dedup?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 11:37:09 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-10-29T11:37:09Z</dc:date>
    <item>
      <title>dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471102#M132519</link>
      <description>&lt;P&gt;I am facing issues wherein the events with same timestamp are not showing in results, when I dedup based on time, but I want all those events, even after dedup. Even epoch will be same for those events. Below is the sample query before dedup and result for the same.&lt;BR /&gt;
Result are attached as an image. I want to show both the events in the results even after dedup, how can I achieve this ?&lt;/P&gt;

&lt;P&gt;index=com vendor_action=comment_create|stats count by created_at,created_by_name|eval point=if(count&amp;gt;0,1,0) | eval epoch=strptime(created_at, "%Y-%m-%dT%H:%M:%S+%z")&lt;IMG src="https://community.splunk.com/storage/temp/275952-before-dedup.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now, the query with dedup :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=com vendor_action=comment_create|stats count by created_at,created_by_name|eval point=if(count&amp;gt;0,1,0) | eval epoch=strptime(created_at, "%Y-%m-%dT%H:%M:%S+%z") | dedup created_at
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/275953-after-dedup.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471102#M132519</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2020-09-30T02:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471103#M132520</link>
      <description>&lt;P&gt;Hi pgadhari,&lt;BR /&gt;
sorry but I don't understand probably there's something I missed in translaction: if you want all the events why do you dedup?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 11:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471103#M132520</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-29T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471104#M132521</link>
      <description>&lt;P&gt;I guess you want to remove duplicate values and not entire rows. dedup removes rows based on the column specified. In your case, Instead of a dedup, you need this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(*) as * by created_at
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this helps.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471104#M132521</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-29T12:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471105#M132522</link>
      <description>&lt;P&gt;Forgot to mention - Actually, the index which I mentioned is summary index, and in that I am getting duplicate events for every run. Its a saved search putting data into summary index and this search is scheduled search running every 5 minutes and getting data of last 15 minutes. Hence, I am getting duplicated events, hence I have to dedup. But doing dedup is removing one of the event of the same timestamps. Hope you got it ?&lt;/P&gt;

&lt;P&gt;When I try to schedule it - to get data of last 5 minutes and running every 5 minutes - it is skipping some of the events, which is not helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471105#M132522</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-10-29T12:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471106#M132523</link>
      <description>&lt;P&gt;in your case, it looks like you should just change the key you're using to dedup, such as created_by_name. dedup returns one row per key&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471106#M132523</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2020-09-30T02:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471107#M132524</link>
      <description>&lt;P&gt;Hi @pgadhari ,&lt;/P&gt;

&lt;P&gt;I don't understand why you want to use &lt;CODE&gt;dedup&lt;/CODE&gt; and also want to keep the events as well.&lt;BR /&gt;
&lt;CODE&gt;dedup created_at&lt;/CODE&gt; - it will remove all the events with same create_at value, irrespective of the other fields values.&lt;/P&gt;

&lt;P&gt;In your case I would suggest try &lt;CODE&gt;dedup _raw&lt;/CODE&gt;, it will only remove the events duplicate events, where the time and all other fields are same.&lt;BR /&gt;
So in case for same &lt;CODE&gt;created_at&lt;/CODE&gt; values, if event data is different, the query will return those events.&lt;/P&gt;

&lt;P&gt;Accept &amp;amp; up-vote the answer if it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471107#M132524</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2019-10-29T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471108#M132525</link>
      <description>&lt;P&gt;Hi pgadhari,&lt;BR /&gt;
did you tryed to dedup for all the fields you have in Summary, or at least the more important, not only _time?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471108#M132525</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-29T13:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471109#M132526</link>
      <description>&lt;P&gt;I will try doing dedup with more than one field and check. I will revert on it. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471109#M132526</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-10-29T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471110#M132527</link>
      <description>&lt;P&gt;No, I dont want to remove the dedup values, instead I want to keep it. As it is a summary index, it is generating duplicate events and thats why I am using "dedup created_at", but because of this dedup, the events which have same timestamp - either one of them is getting removed from the result, due to which I cannot see that user in our statistics. Hope you got it ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471110#M132527</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-10-29T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471111#M132528</link>
      <description>&lt;P&gt;I can try doing dedup the _raw events, but I am not sure, how it can help ? But see my above reply &lt;A href="https://answers.splunk.com/comments/779814/view.html"&gt;https://answers.splunk.com/comments/779814/view.html&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;I dont want to remove those events, I want to keep it. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471111#M132528</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-10-29T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: dedup events with same timestamp ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471112#M132529</link>
      <description>&lt;P&gt;@arjunpkishore5 - I think after adding above query, its working. After adding above query, I did mvexpand by other field name and seems to be working. I need to monitor it for sometime. Once, its ok, I will accept this answer. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 11:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-events-with-same-timestamp/m-p/471112#M132529</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-10-30T11:29:09Z</dc:date>
    </item>
  </channel>
</rss>

