<?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 can I use dedup command using many fields?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471173#M132552</link>
    <description>&lt;P&gt;Using dedup on multiple fields with the comma isn't only working on the first field.  It is actually removing events where the host and IP BOTH match.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 05:09:31 GMT</pubDate>
    <dc:creator>bjcross</dc:creator>
    <dc:date>2019-12-20T05:09:31Z</dc:date>
    <item>
      <title>how can I use dedup command using many fields??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471169#M132548</link>
      <description>&lt;P&gt;Greetings!!&lt;/P&gt;

&lt;P&gt;I would like to ask a question about dedup&lt;BR /&gt;
eg: |dedup host ,IP&lt;BR /&gt;
       |dedup host  |dedup IP&lt;BR /&gt;
I've tried but when I use a comma, dedup works only on the first fields, and I want that this can be performed on both sides not only one side, I wanted that the output for fields 1 and fields 2 no redundancy values come again?&lt;/P&gt;

&lt;P&gt;for example: &lt;BR /&gt;
|dedup host, IP   ---&amp;gt;this brings me the below output: and I want that this one could not be repeated also like on host fields.&lt;/P&gt;

&lt;P&gt;host            IP&lt;BR /&gt;&lt;BR /&gt;
   x            1.1.1.1&lt;BR /&gt;
   y             1.1.1.1&lt;BR /&gt;
   z             2.2.2.2&lt;/P&gt;

&lt;P&gt;what the best way to remove redundancy for two fields???????? &lt;BR /&gt;
I need your help?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 18:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471169#M132548</guid>
      <dc:creator>pacifikn</dc:creator>
      <dc:date>2019-12-19T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: how can I use dedup command using many fields??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471170#M132549</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| stats count by your_dedup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @pacifikn&lt;BR /&gt;
this is the easy way.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 19:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471170#M132549</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-19T19:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: how can I use dedup command using many fields??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471171#M132550</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| dedup host
| dedup IP
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Dec 2019 20:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471171#M132550</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-19T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: how can I use dedup command using many fields??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471172#M132551</link>
      <description>&lt;P&gt;Thank you to4kawa and Woodcock,&lt;/P&gt;

&lt;P&gt;Thank you for your assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 04:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471172#M132551</guid>
      <dc:creator>pacifikn</dc:creator>
      <dc:date>2019-12-20T04:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: how can I use dedup command using many fields??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471173#M132552</link>
      <description>&lt;P&gt;Using dedup on multiple fields with the comma isn't only working on the first field.  It is actually removing events where the host and IP BOTH match.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 05:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471173#M132552</guid>
      <dc:creator>bjcross</dc:creator>
      <dc:date>2019-12-20T05:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: how can I use dedup command using many fields??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471174#M132553</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="C IP
x 1.1.1.1
x 2.2.2.2
y 1.1.1.1
z 2.2.2.2"
| makemv delim="
" _raw
| multikv
| table C IP
| rename C as host
| dedup host
| dedup IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="C IP
x 1.1.1.1
x 2.2.2.2
y 1.1.1.1
z 2.2.2.2"
| makemv delim="
" _raw
| multikv
| table C IP
| rename C as host
| stats count by host IP
| table host IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="C IP
x 1.1.1.1
x 2.2.2.2
y 1.1.1.1
z 2.2.2.2"
| makemv delim="
" _raw
| multikv
| table C IP
| rename C as host
| dedup host,IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which result is correct?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 14:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-use-dedup-command-using-many-fields/m-p/471174#M132553</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-20T14:42:31Z</dc:date>
    </item>
  </channel>
</rss>

