<?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: How to remove the row if the column is same? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171314#M49060</link>
    <description>&lt;P&gt;I have fixed by myself as followings:)&lt;BR /&gt;
sourcetype="xyz" status=* |stats dc(ID) by ID status |sort ID| sort - status | dedup 1 ID&lt;/P&gt;</description>
    <pubDate>Wed, 31 Dec 2014 09:35:17 GMT</pubDate>
    <dc:creator>Wind</dc:creator>
    <dc:date>2014-12-31T09:35:17Z</dc:date>
    <item>
      <title>How to remove the row if the column is same?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171313#M49059</link>
      <description>&lt;P&gt;Such as when I using the following search:&lt;BR /&gt;
&lt;STRONG&gt;sourcetype="xyz" status=* |stats dc(ID) by ID status |sort by ID&lt;/STRONG&gt;&lt;BR /&gt;
I will get the following table&lt;BR /&gt;
&lt;STRONG&gt;ID status dc(ID)&lt;BR /&gt;
12345 true 1&lt;BR /&gt;
12345 false 1&lt;BR /&gt;
92345 true 1&lt;BR /&gt;
82345 false 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Can you tell me how to get the following table?&lt;BR /&gt;
&lt;STRONG&gt;ID status dc(ID)&lt;BR /&gt;
12345 true 1&lt;BR /&gt;
92345 true 1&lt;BR /&gt;
82345 false 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;That means remove the above second row(When ID is duplicated, remove the row about the "false" column)&lt;/P&gt;

&lt;P&gt;Thanks advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2014 09:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171313#M49059</guid>
      <dc:creator>Wind</dc:creator>
      <dc:date>2014-12-31T09:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the row if the column is same?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171314#M49060</link>
      <description>&lt;P&gt;I have fixed by myself as followings:)&lt;BR /&gt;
sourcetype="xyz" status=* |stats dc(ID) by ID status |sort ID| sort - status | dedup 1 ID&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2014 09:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171314#M49060</guid>
      <dc:creator>Wind</dc:creator>
      <dc:date>2014-12-31T09:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the row if the column is same?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171315#M49061</link>
      <description>&lt;P&gt;&lt;STRONG&gt;dedup&lt;/STRONG&gt; is a expensive command.&lt;BR /&gt;
so, instead use only ID after by clause section i.e,&lt;/P&gt;

&lt;P&gt;sourcetype="xyz" status=* |stats values(status) dc(ID) by ID |sort by ID&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 15:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-row-if-the-column-is-same/m-p/171315#M49061</guid>
      <dc:creator>neelamssantosh</dc:creator>
      <dc:date>2015-01-06T15:50:34Z</dc:date>
    </item>
  </channel>
</rss>

