<?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: Using the number of events in bins to find percentile in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416663#M14889</link>
    <description>&lt;P&gt;you could do that as well if you only need p95 , all other fields will be gone. Evenstats is used to keep all the fields in the output&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 08:16:24 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-08-22T08:16:24Z</dc:date>
    <item>
      <title>Using the number of events in bins to find percentile</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416658#M14884</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I have a seemingly simple goal: bucketing events by time and finding the 95th percentile using the total number of events in each bin. I'm able to get the counts for each bin but I'm not sure how to use each of those counts and find the percentile using &lt;CODE&gt;p()&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;This is how I'm getting the count for each bin:&lt;BR /&gt;
&lt;CODE&gt;| bin _time span=5m | stats count by _time&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now I want to use the values in the count column as an input list to calculate &lt;CODE&gt;p95()&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Thanks for the help in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 00:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416658#M14884</guid>
      <dc:creator>jonnymolina</dc:creator>
      <dc:date>2018-08-21T00:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using the number of events in bins to find percentile</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416659#M14885</link>
      <description>&lt;P&gt;@jonnymolina,&lt;/P&gt;

&lt;P&gt;Does it work for you ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal |bucket span=5m _time|stats count by _time|eventstats perc95(count) as p95
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Aug 2018 03:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416659#M14885</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-21T03:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using the number of events in bins to find percentile</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416660#M14886</link>
      <description>&lt;P&gt;This works! Thank you so much. As a side topic, could this be achieved through &lt;CODE&gt;streamstats&lt;/CODE&gt; as well?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416660#M14886</guid>
      <dc:creator>jonnymolina</dc:creator>
      <dc:date>2018-08-21T06:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using the number of events in bins to find percentile</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416661#M14887</link>
      <description>&lt;P&gt;I wouldn't do it with streamstats because its specially created for creating "streaming" events where as eventstats acts on the events by events&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 07:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416661#M14887</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-21T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using the number of events in bins to find percentile</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416662#M14888</link>
      <description>&lt;P&gt;I also figured out you can return a single p95 value by doing&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| bin _time span=5m | stats count by _time | stats perc95(count) as p95&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416662#M14888</guid>
      <dc:creator>jonnymolina</dc:creator>
      <dc:date>2018-08-21T20:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using the number of events in bins to find percentile</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416663#M14889</link>
      <description>&lt;P&gt;you could do that as well if you only need p95 , all other fields will be gone. Evenstats is used to keep all the fields in the output&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-the-number-of-events-in-bins-to-find-percentile/m-p/416663#M14889</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-22T08:16:24Z</dc:date>
    </item>
  </channel>
</rss>

