<?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 search the Percentage and Count of Total by each range of a rangemap? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-Percentage-and-Count-of-Total-by-each-range-of/m-p/188502#M54309</link>
    <description>&lt;P&gt;Try the search below: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="view" Activity="viewdocument"  
| rangemap field=Duration "0-3sec"=0-3000, "3-6sec"=3001-6000, "6-10sec"=6001-10000, "10-15sec"=10001-15000, "15-20sec"=15001-20000, "20-25sec"=20001-25000, default="&amp;gt;25sec"  
| stats count as Count count(eval(range="0-3sec")) as 0to3sec count(eval(range="3-6sec")) as 3to6sec count(eval(range="6-10sec")) as 6to10sec count(eval(range="10-15sec")) as 10to15sec count(eval(range="15-20sec")) as 15to20sec count(eval(range="20-25sec")) as 20to25sec count(eval(range="&amp;gt;25sec")) as grt25sec
| eval Percent0=0to3sec *100/Count 
| eval Percent3=3to6sec*100/Count 
| eval Percent6=6to10sec*100/Count 
| eval Percent10=10to15sec*100/Count 
| eval Percent20=20to25sec*100/Count
| eval Percent25plus=grt25sec*100/Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Aug 2015 22:22:09 GMT</pubDate>
    <dc:creator>jensonthottian</dc:creator>
    <dc:date>2015-08-19T22:22:09Z</dc:date>
    <item>
      <title>How to search the Percentage and Count of Total by each range of a rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-Percentage-and-Count-of-Total-by-each-range-of/m-p/188501#M54308</link>
      <description>&lt;P&gt;I've looked at several posts involving "Percent of Total" and have tried the suggestions, but still can't get exactly the result I'm looking to have.&lt;/P&gt;

&lt;P&gt;I would like to have the "range, count, and percentage of the total count" for each range. I've been able to get (range + count) or (range+percentage), but have not been able to have (range + count + percentage) all together. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="view" Activity="viewdocument" | eventstats sum(count) as total | rangemap field=Duration "0-3sec"=0-3000, "3-6sec"=3001-6000, "6-10sec"=6001-10000, "10-15sec"=10001-15000, "15-20sec"=15001-20000, "20-25sec"=20001-25000, default="&amp;gt;25sec"  | stats count as counter by range | eval percent=round(counter/total, 2) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-Percentage-and-Count-of-Total-by-each-range-of/m-p/188501#M54308</guid>
      <dc:creator>slatta</dc:creator>
      <dc:date>2015-08-19T19:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the Percentage and Count of Total by each range of a rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-Percentage-and-Count-of-Total-by-each-range-of/m-p/188502#M54309</link>
      <description>&lt;P&gt;Try the search below: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="view" Activity="viewdocument"  
| rangemap field=Duration "0-3sec"=0-3000, "3-6sec"=3001-6000, "6-10sec"=6001-10000, "10-15sec"=10001-15000, "15-20sec"=15001-20000, "20-25sec"=20001-25000, default="&amp;gt;25sec"  
| stats count as Count count(eval(range="0-3sec")) as 0to3sec count(eval(range="3-6sec")) as 3to6sec count(eval(range="6-10sec")) as 6to10sec count(eval(range="10-15sec")) as 10to15sec count(eval(range="15-20sec")) as 15to20sec count(eval(range="20-25sec")) as 20to25sec count(eval(range="&amp;gt;25sec")) as grt25sec
| eval Percent0=0to3sec *100/Count 
| eval Percent3=3to6sec*100/Count 
| eval Percent6=6to10sec*100/Count 
| eval Percent10=10to15sec*100/Count 
| eval Percent20=20to25sec*100/Count
| eval Percent25plus=grt25sec*100/Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Aug 2015 22:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-Percentage-and-Count-of-Total-by-each-range-of/m-p/188502#M54309</guid>
      <dc:creator>jensonthottian</dc:creator>
      <dc:date>2015-08-19T22:22:09Z</dc:date>
    </item>
  </channel>
</rss>

