<?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 lost data, a bug? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dedup-lost-data-a-bug/m-p/142525#M39583</link>
    <description>&lt;P&gt;The problem is that the subsearch has a limit - and I don't see that you need the subsearch at all.  You also do not need the sort, Splunk returns events in reverse time order (newest first) by default.Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=MYTYPE | dedup fieldX
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return the most recent event for each value of &lt;CODE&gt;fieldX&lt;/CODE&gt;. &lt;/P&gt;</description>
    <pubDate>Sat, 27 Sep 2014 20:04:11 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2014-09-27T20:04:11Z</dc:date>
    <item>
      <title>Dedup lost data, a bug?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-lost-data-a-bug/m-p/142524#M39582</link>
      <description>&lt;P&gt;For below search : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=MYTYPE [search eventtype=MYTYPE | sort 0 _time desc | dedup fieldX | return 1000 source]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Expect to return the latest source for 1 fieldX value.&lt;/P&gt;

&lt;P&gt;In our data, we have over 10,000,000 events for the latest source with fieldX=A, fieldX=B, fieldX=C respectively.&lt;BR /&gt;
Thus expect the search returns over 30,000,000 results.&lt;BR /&gt;
However, it returns the results for fieldX=A only.&lt;/P&gt;

&lt;P&gt;Question : is the search correctly written? If yes, is this a bug of dedup?  Is there any limitation of dedup about the result size? If we use a smaller dataset, dedup works properly with the same search.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-lost-data-a-bug/m-p/142524#M39582</guid>
      <dc:creator>april_tao</dc:creator>
      <dc:date>2014-09-26T16:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup lost data, a bug?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-lost-data-a-bug/m-p/142525#M39583</link>
      <description>&lt;P&gt;The problem is that the subsearch has a limit - and I don't see that you need the subsearch at all.  You also do not need the sort, Splunk returns events in reverse time order (newest first) by default.Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=MYTYPE | dedup fieldX
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return the most recent event for each value of &lt;CODE&gt;fieldX&lt;/CODE&gt;. &lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2014 20:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-lost-data-a-bug/m-p/142525#M39583</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-09-27T20:04:11Z</dc:date>
    </item>
  </channel>
</rss>

