<?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 duplicates of one field per another field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552976#M156966</link>
    <description>&lt;P&gt;This worked great, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 15:59:08 GMT</pubDate>
    <dc:creator>Krapht</dc:creator>
    <dc:date>2021-05-25T15:59:08Z</dc:date>
    <item>
      <title>How to remove duplicates of one field per another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552867#M156931</link>
      <description>&lt;P&gt;Going to be very tough to explain but I'll give it my best shot. I have some fields I'm trying to report on, IP and ID.&amp;nbsp; There can be multiple duplicate ID's per IP, and vice versa. I would like to remove duplicate ID's per IP, but can't dedup on ID because some IP's could have the same ID. I also tried stats values(ID) by IP, but there are other fields that also need to be reported on and from my research I couldn't find a way to use multiple values.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;What I currently get&lt;/P&gt;&lt;P&gt;IP1&amp;nbsp; &amp;nbsp; &amp;nbsp;ID1&lt;/P&gt;&lt;P&gt;IP1&amp;nbsp; &amp;nbsp; &amp;nbsp;ID1&lt;/P&gt;&lt;P&gt;IP1&amp;nbsp; &amp;nbsp; &amp;nbsp;ID2&lt;/P&gt;&lt;P&gt;IP1&amp;nbsp; &amp;nbsp; &amp;nbsp;ID2&lt;/P&gt;&lt;P&gt;IP2&amp;nbsp; &amp;nbsp; &amp;nbsp;ID1&lt;/P&gt;&lt;P&gt;IP2&amp;nbsp; &amp;nbsp; &amp;nbsp;ID1&lt;/P&gt;&lt;P&gt;IP2&amp;nbsp; &amp;nbsp; &amp;nbsp;ID2&lt;/P&gt;&lt;P&gt;IP2&amp;nbsp; &amp;nbsp; &amp;nbsp;ID2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to get&lt;/P&gt;&lt;P&gt;IP1&amp;nbsp; &amp;nbsp; &amp;nbsp;ID1&lt;/P&gt;&lt;P&gt;IP1&amp;nbsp; &amp;nbsp; &amp;nbsp;ID2&lt;/P&gt;&lt;P&gt;IP2&amp;nbsp; &amp;nbsp; &amp;nbsp;ID1&lt;/P&gt;&lt;P&gt;IP2&amp;nbsp; &amp;nbsp; &amp;nbsp;ID2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR (Preferably) in table format&lt;/P&gt;&lt;P&gt;IP 1&amp;nbsp; &amp;nbsp; ID1&amp;nbsp; &amp;nbsp; &amp;nbsp;Name&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID2&amp;nbsp; &amp;nbsp; &amp;nbsp;Name&lt;/P&gt;&lt;P&gt;-------------------------|&lt;/P&gt;&lt;P&gt;IP 2&amp;nbsp; &amp;nbsp; ID1&amp;nbsp; &amp;nbsp; &amp;nbsp;Name&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID2&amp;nbsp; &amp;nbsp; &amp;nbsp;Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 05:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552867#M156931</guid>
      <dc:creator>Krapht</dc:creator>
      <dc:date>2021-05-25T05:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates of one field per another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552872#M156932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234761"&gt;@Krapht&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(ID) as ID values(name) as name by IP&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Regards&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 06:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552872#M156932</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-25T06:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates of one field per another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552883#M156940</link>
      <description>&lt;P&gt;I believe I found my own answer in the docs upon further research:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep results that have the same combination of values in multiple fields&lt;BR /&gt;For search results that have the same source AND host values, keep the first 2 that occur and remove all subsequent results.&lt;/P&gt;&lt;P&gt;... | dedup 2 source host&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 06:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552883#M156940</guid>
      <dc:creator>Krapht</dc:creator>
      <dc:date>2021-05-25T06:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates of one field per another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552893#M156947</link>
      <description>&lt;P&gt;In this case, you should accept your own reply to mark the question as answered. (Yes, dedup is an effective way to do this.)&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 07:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552893#M156947</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2021-05-25T07:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates of one field per another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552976#M156966</link>
      <description>&lt;P&gt;This worked great, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 15:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-duplicates-of-one-field-per-another-field/m-p/552976#M156966</guid>
      <dc:creator>Krapht</dc:creator>
      <dc:date>2021-05-25T15:59:08Z</dc:date>
    </item>
  </channel>
</rss>

