<?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 group results without duplicates? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456117#M128969</link>
    <description>&lt;P&gt;&lt;CODE&gt;dedup host&lt;/CODE&gt; should do it for you ; -)&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 20:25:17 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2019-05-15T20:25:17Z</dc:date>
    <item>
      <title>How can I group results without duplicates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456116#M128968</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;This is my command to find the number of times an authentication has been rejected.&lt;BR /&gt;
But I would like to be able to eliminate duplicated results. for example I only have 2 host. But as I have 24 IPs, the "host" value appears 25 times. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=cisco_asa eventtype=cisco_authentication vendor_action="authentication Rejected"
| stats count by IP host server
| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 20:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456116#M128968</guid>
      <dc:creator>rosho</dc:creator>
      <dc:date>2019-05-15T20:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group results without duplicates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456117#M128969</link>
      <description>&lt;P&gt;&lt;CODE&gt;dedup host&lt;/CODE&gt; should do it for you ; -)&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 20:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456117#M128969</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-05-15T20:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group results without duplicates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456118#M128970</link>
      <description>&lt;P&gt;So what you are doing is, you are "grouping" by  IP, host &amp;amp; then by server. So host appearing multiple times, is because you asked it in the grouping.&lt;/P&gt;

&lt;P&gt;So if you just need to group ONLY by host?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=cisco_asa eventtype=cisco_authentication vendor_action="authentication Rejected"
 | stats count by host
 | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to view in a matrix format, you can do something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=cisco_asa eventtype=cisco_authentication vendor_action="authentication Rejected"
 | stats count by host, IP
 | xyseries host, IP, count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 20:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456118#M128970</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-15T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group results without duplicates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456119#M128971</link>
      <description>&lt;P&gt;I have only 2 hosts. &lt;/P&gt;

&lt;P&gt;How can I make it look like this:&lt;/P&gt;

&lt;P&gt;xx.xx.xx.xx&lt;BR /&gt;
xx.xx.xx.xx                   BTS-BOU-5555X                           8&lt;/P&gt;

&lt;P&gt;207.164.79.74&lt;BR /&gt;
69.156.29.208             BTS-MIS-5555X                           12&lt;BR /&gt;
70.24.234.54&lt;BR /&gt;
70.54.70.131&lt;/P&gt;

&lt;P&gt;Instead of: &lt;/P&gt;

&lt;P&gt;xx.xx.xx.xx                   BTS-BOU-5555X                           4&lt;BR /&gt;
xx.xx.xx.xx                   BTS-BOU-5555X                           4&lt;/P&gt;

&lt;P&gt;207.164.79.74             BTS-MIS-5555X                            3&lt;BR /&gt;
69.156.29.208             BTS-MIS-5555X                            3&lt;BR /&gt;
70.24.234.54               BTS-MIS-5555X                            3&lt;BR /&gt;
70.54.70.131               BTS-MIS-5555X                            3&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 20:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456119#M128971</guid>
      <dc:creator>rosho</dc:creator>
      <dc:date>2019-05-17T20:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group results without duplicates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456120#M128972</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=cisco_asa eventtype=cisco_authentication vendor_action="authentication Rejected"
  | stats count , values(IP) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 May 2019 10:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-results-without-duplicates/m-p/456120#M128972</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-18T10:33:04Z</dc:date>
    </item>
  </channel>
</rss>

