<?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 with multiple criteria in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114717#M30365</link>
    <description>&lt;P&gt;dedup keepempty=t A B&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Dedup"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Dedup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My understanding is that dedup on 3 fields finds all matches on any two of them as duplicates.  I will cite my source for that in a moment or just provide the results of a test case in support of that assertion, but I remember learning it in a Splunk course and testing it myself for validation.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2015 02:37:29 GMT</pubDate>
    <dc:creator>landen99</dc:creator>
    <dc:date>2015-04-29T02:37:29Z</dc:date>
    <item>
      <title>Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114709#M30357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to use the dedup command with more than one criteria.&lt;/P&gt;

&lt;P&gt;First I used &lt;STRONG&gt;| dedup A&lt;/STRONG&gt; and had 100 events afterwards.&lt;BR /&gt;
Then I used &lt;STRONG&gt;| dedup A, B&lt;/STRONG&gt; and had 70 events afterwards. In my understanding I the number of events should increase, because I've specified the dedup criteria and less duplicates should be identified?! Am I completely wrong?&lt;/P&gt;

&lt;P&gt;Best&lt;/P&gt;

&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114709#M30357</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2014-01-15T09:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114710#M30358</link>
      <description>&lt;P&gt;Does B exist in all your events? IIRC dedup will fail otherwise.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114710#M30358</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-01-15T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114711#M30359</link>
      <description>&lt;P&gt;Hey Ayn,&lt;/P&gt;

&lt;P&gt;yes normally it should exist in all events. Is there a command to find out, whether there are events without the field B and to filter them out?&lt;/P&gt;

&lt;P&gt;Edit:&lt;/P&gt;

&lt;P&gt;Just tried it out with | sourctype=* AND NOT B= * .&lt;BR /&gt;
This results in a few events&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114711#M30359</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2014-01-15T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114712#M30360</link>
      <description>&lt;P&gt;Then that's your problem there. You can do &lt;CODE&gt;... | fillnull B | ...&lt;/CODE&gt; if you want B with an empty value in events that don't have it. That will make dedup work.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 11:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114712#M30360</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-01-15T11:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114713#M30361</link>
      <description>&lt;P&gt;Ah, now numbers are changing in the correct direction &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And when I want to ignore events where the dedup criteria don't exist, I can just use &lt;/P&gt;

&lt;P&gt;sourcetype=* AND &lt;BR /&gt;
A=* AND&lt;BR /&gt;
B=* AND&lt;/P&gt;

&lt;P&gt;| dedup A,B&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 11:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114713#M30361</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2014-01-15T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114714#M30362</link>
      <description>&lt;P&gt;A further question regarding the dedup command:&lt;/P&gt;

&lt;P&gt;Let's say the fields A &amp;amp; B can appear multiple times in an event.&lt;BR /&gt;
For example:&lt;/P&gt;

&lt;P&gt;Event 1:&lt;BR /&gt;
A=1&lt;BR /&gt;
A=2&lt;BR /&gt;
B=3&lt;BR /&gt;
B=4&lt;BR /&gt;
timestamp=X&lt;/P&gt;

&lt;P&gt;Event:2&lt;BR /&gt;
A=1&lt;BR /&gt;
A=2&lt;BR /&gt;
B=3&lt;BR /&gt;
B=4&lt;BR /&gt;
timestamp=X&lt;/P&gt;

&lt;P&gt;Event 3:&lt;BR /&gt;
A=1&lt;BR /&gt;
A=2&lt;BR /&gt;
B=3&lt;BR /&gt;
B=4&lt;BR /&gt;
&lt;STRONG&gt;timestamp=Y&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dedup A,B,timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;does this include all field values for A &amp;amp; B and results in two remaining events (event 1 and event 3)?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114714#M30362</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2014-01-17T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114715#M30363</link>
      <description>&lt;P&gt;Yes it gives the value till you have something distinct with the above combination.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114715#M30363</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-17T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114716#M30364</link>
      <description>&lt;P&gt;thanks for confirming!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114716#M30364</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2014-01-21T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dedup with multiple criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114717#M30365</link>
      <description>&lt;P&gt;dedup keepempty=t A B&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Dedup"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Dedup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My understanding is that dedup on 3 fields finds all matches on any two of them as duplicates.  I will cite my source for that in a moment or just provide the results of a test case in support of that assertion, but I remember learning it in a Splunk course and testing it myself for validation.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 02:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dedup-with-multiple-criteria/m-p/114717#M30365</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2015-04-29T02:37:29Z</dc:date>
    </item>
  </channel>
</rss>

