<?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 How to find top events contributing to a total of X% of the events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-top-events-contributing-to-a-total-of-X-of-the/m-p/288365#M175710</link>
    <description>&lt;P&gt;Hi, I can find the top events but I want to see all those events that are contributing say 80% of the total. e.g. there are 25k events and the top 10 events contribute to 96% of the total. I want to see the only events that contribute to 80% of the total rather than 96% as retrieved in the results. I have read related questions/answers but couldn't get a clue how to do it. Anyone please?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 08:51:55 GMT</pubDate>
    <dc:creator>dkikan</dc:creator>
    <dc:date>2017-02-07T08:51:55Z</dc:date>
    <item>
      <title>How to find top events contributing to a total of X% of the events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-top-events-contributing-to-a-total-of-X-of-the/m-p/288365#M175710</link>
      <description>&lt;P&gt;Hi, I can find the top events but I want to see all those events that are contributing say 80% of the total. e.g. there are 25k events and the top 10 events contribute to 96% of the total. I want to see the only events that contribute to 80% of the total rather than 96% as retrieved in the results. I have read related questions/answers but couldn't get a clue how to do it. Anyone please?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 08:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-top-events-contributing-to-a-total-of-X-of-the/m-p/288365#M175710</guid>
      <dc:creator>dkikan</dc:creator>
      <dc:date>2017-02-07T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find top events contributing to a total of X% of the events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-top-events-contributing-to-a-total-of-X-of-the/m-p/288366#M175711</link>
      <description>&lt;P&gt;Give this a try. Assuming there is a unique identifier field call &lt;CODE&gt;identifier&lt;/CODE&gt; based on which the top is calculated.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar [ search index=foo sourcetype=bar | stats count by identifier | sort 0 -count | eventstats sum(count) as total | eval perc=round(count*100/total) | accum perc | where perc&amp;lt;=80] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-top-events-contributing-to-a-total-of-X-of-the/m-p/288366#M175711</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-07T15:45:07Z</dc:date>
    </item>
  </channel>
</rss>

