<?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: Compare rows within a table for duplicates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81987#M20795</link>
    <description>&lt;P&gt;I guess I don't see why you can't use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup OrderID CompletionStatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will keep only one of each combination?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2013 22:35:46 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2013-04-03T22:35:46Z</dc:date>
    <item>
      <title>Compare rows within a table for duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81985#M20793</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created a report that takes a lookup list of order references and returns all other orders that are related, my problem is that a lot of the results from my search are duplicates - I cannot use a dedup command on any of the fields as I may miss some results - so what I wanted to do was to compare 2 fields within the rows - e.g. OrderID and CompletionStatus - check that there is no row with duplicated information, and remove 1 of the rows if there is. I have seen a similar issue &lt;A href="http://splunk-base.splunk.com/answers/28467/alert-based-on-comparison-of-two-result-rows"&gt;here&lt;/A&gt; but this looks like it depends on there being only 2 rows. Is what I am asking possible and if so can anyone suggest how I would go about doing this?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 14:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81985#M20793</guid>
      <dc:creator>rlautman</dc:creator>
      <dc:date>2013-04-02T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows within a table for duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81986#M20794</link>
      <description>&lt;P&gt;Could the combination of &lt;CODE&gt;multikv&lt;/CODE&gt; and &lt;CODE&gt;dedup&lt;/CODE&gt; not be of help?&lt;/P&gt;

&lt;P&gt;From the docs on multikv:&lt;BR /&gt;
    Extracts fields from events with information in a tabular format (e.g. top, netstat, ps, ... etc). A new event will be created for each table row. Field names will be derived from the title row of the table.&lt;/P&gt;

&lt;P&gt;Then use &lt;CODE&gt;| dedup field1 field2 field3&lt;/CODE&gt; to only keep unique combinations of the three fields'  values.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 15:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81986#M20794</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-02T15:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows within a table for duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81987#M20795</link>
      <description>&lt;P&gt;I guess I don't see why you can't use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup OrderID CompletionStatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will keep only one of each combination?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 22:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81987#M20795</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-04-03T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows within a table for duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81988#M20796</link>
      <description>&lt;P&gt;This seems to do the job, thanks, I wasn't sure if dedup could be used for multiple fields &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 09:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-rows-within-a-table-for-duplicates/m-p/81988#M20796</guid>
      <dc:creator>rlautman</dc:creator>
      <dc:date>2013-04-05T09:54:24Z</dc:date>
    </item>
  </channel>
</rss>

