<?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 unique rows from a table? Is there a command opposite to dedup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133492#M36441</link>
    <description>&lt;P&gt;Ok found a way to do it &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;stats count dc(Type) as sourcetypes by ID | search sourcetypes &amp;gt; 1&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;change sourcetypes &amp;gt; 0 to 1 to remove unique row &lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2014 17:14:48 GMT</pubDate>
    <dc:creator>MayankSplunk</dc:creator>
    <dc:date>2014-11-25T17:14:48Z</dc:date>
    <item>
      <title>How to remove unique rows from a table? Is there a command opposite to dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133490#M36439</link>
      <description>&lt;P&gt;From my search and transaction command I get the following table.  To further process my results, I want to remove the row with ID &lt;STRONG&gt;V3&lt;/STRONG&gt; because it does not exist for type B. Is there a command opposite to dedup? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type      ID    Score
A         V1     123
B         V1     786
A         V2     45
B         V2     34
A         V3     95
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Nov 2014 16:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133490#M36439</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T16:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove unique rows from a table? Is there a command opposite to dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133491#M36440</link>
      <description>&lt;P&gt;This can be achieved in two steps. (may need adjustment per your search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search producing above | eventstats count by ID | where count &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will remove all the records where ID appears only once (unique).&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 17:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133491#M36440</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-25T17:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove unique rows from a table? Is there a command opposite to dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133492#M36441</link>
      <description>&lt;P&gt;Ok found a way to do it &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;stats count dc(Type) as sourcetypes by ID | search sourcetypes &amp;gt; 1&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;change sourcetypes &amp;gt; 0 to 1 to remove unique row &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 17:14:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133492#M36441</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T17:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove unique rows from a table? Is there a command opposite to dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133493#M36442</link>
      <description>&lt;P&gt;Wouldn't this keep all the rows?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133493#M36442</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-25T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove unique rows from a table? Is there a command opposite to dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133494#M36443</link>
      <description>&lt;P&gt;I have updated the answer. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133494#M36443</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T18:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove unique rows from a table? Is there a command opposite to dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133495#M36444</link>
      <description>&lt;P&gt;Thanks @somesoni2 - that works as well. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-unique-rows-from-a-table-Is-there-a-command/m-p/133495#M36444</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T18:29:30Z</dc:date>
    </item>
  </channel>
</rss>

