<?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 get the count of the number of duplicates that have been eliminated using dedup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-count-of-the-number-of-duplicates-that-have-been/m-p/454351#M128552</link>
    <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=myIndexVal log_level="'ERROR'" | stats count by reason, desc&lt;/CODE&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2019 00:11:10 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-05-14T00:11:10Z</dc:date>
    <item>
      <title>How to get the count of the number of duplicates that have been eliminated using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-count-of-the-number-of-duplicates-that-have-been/m-p/454350#M128551</link>
      <description>&lt;P&gt;There are many failures in my logs and many of them are failing for the same reason. I am using this query to see the unique reasons:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myIndexVal log_level="'ERROR'" | dedup reason, desc | table reason, desc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also want a count next to each row saying how many duplicates there were for that reason. Basically I want a frequency count of each type of failure. I am a complete beginner and am in no way married to the above command, in fact the count doesn't even have to be in the table generated by the above query, I just need the numbers and the failure types, it doesn't have to be pretty or anything.&lt;/P&gt;

&lt;P&gt;All the other posts I'm seeing seem to require me to know all the failure reasons, as in there needs to be some limited number that I can put into the query, but thats not feasible in my situation. &lt;BR /&gt;
Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 00:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-count-of-the-number-of-duplicates-that-have-been/m-p/454350#M128551</guid>
      <dc:creator>marty1234</dc:creator>
      <dc:date>2019-05-14T00:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count of the number of duplicates that have been eliminated using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-count-of-the-number-of-duplicates-that-have-been/m-p/454351#M128552</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=myIndexVal log_level="'ERROR'" | stats count by reason, desc&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 00:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-count-of-the-number-of-duplicates-that-have-been/m-p/454351#M128552</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-05-14T00:11:10Z</dc:date>
    </item>
  </channel>
</rss>

