<?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: Percentile values over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339828#M100799</link>
    <description>&lt;P&gt;Please try the following (timechart will require _time field which is getting removed by your chart query):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=beacon &amp;lt;search query&amp;gt; 
| chart count min(_time) as _time by ID 
| timechart perc99(count) as Perc99 perc1(count) as Perc1 perc50(count) as Perc50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: span will be defaulted based on your Time Range selection or else you would need to introduce the same for chart and timechart.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 13:28:56 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-04-20T13:28:56Z</dc:date>
    <item>
      <title>Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339827#M100798</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a query to look at the number of times a user does an event, and then get different percentiles of these. I'd however like to change this to track it over time. I've tried adding in timechart but it has not worked.&lt;/P&gt;

&lt;P&gt;Do yo ukow if this Is this an easy thing to do?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=beacon &amp;lt;search query&amp;gt; | chart count by ID | stats perc99(count), perc1(count), perc50(count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2017 12:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339827#M100798</guid>
      <dc:creator>ewanbrown</dc:creator>
      <dc:date>2017-04-20T12:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339828#M100799</link>
      <description>&lt;P&gt;Please try the following (timechart will require _time field which is getting removed by your chart query):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=beacon &amp;lt;search query&amp;gt; 
| chart count min(_time) as _time by ID 
| timechart perc99(count) as Perc99 perc1(count) as Perc1 perc50(count) as Perc50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: span will be defaulted based on your Time Range selection or else you would need to introduce the same for chart and timechart.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 13:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339828#M100799</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-20T13:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339829#M100800</link>
      <description>&lt;P&gt;@ewanbrown... Were you able to try this out. Did the query work for you?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 11:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339829#M100800</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-21T11:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339830#M100801</link>
      <description>&lt;P&gt;Percentile of what, precisely?&lt;/P&gt;

&lt;P&gt;The code you posted returns, of all the total counts of all the users, what are the values for count that represent the user at the 99th percentile, the 50th and the 1st.&lt;/P&gt;

&lt;P&gt;If you wanted to know what the 99th percentile count was for each day, then you could do this  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=beacon &amp;lt;search query&amp;gt; | bin _time as Day span=1d | stats count by ID Day| stats perc99(count) as P99 by Day
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... and then you could calculate the AVERAGE of the daily 99th percentiles ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats avg(P99) as avg99thPercentile
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...or if you wanted to know what the 99th percentile count was regarding the set of "event count per day per user" for the entire data set, you could do this... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=beacon &amp;lt;search query&amp;gt; | bin _time as Day span=1d | stats count by ID Day | stats perc99(count) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Apr 2017 15:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339830#M100801</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-21T15:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339831#M100802</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;This is what I needed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=beacon &amp;lt;search query&amp;gt; | bin _time as Day span=1d | stats count by ID Day| stats perc99(count) as P99 by Day
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339831#M100802</guid>
      <dc:creator>ewanbrown</dc:creator>
      <dc:date>2017-04-24T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339832#M100803</link>
      <description>&lt;P&gt;Thanks for replying. It didn't seem to work. The 99 percentile value seems to get bigger the further back in time you went.&lt;/P&gt;

&lt;P&gt;This worked for me though&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=beacon Platform=android | bin _time as Day span=1m | stats count by INID Day | stats perc99(count) as P99, perc50(count) as P50 by Day
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339832#M100803</guid>
      <dc:creator>ewanbrown</dc:creator>
      <dc:date>2017-04-24T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339833#M100804</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;

&lt;P&gt;index=beacon  | bin _time as Day span=1m | stats count by ID Day | stats perc99(count) as P99, perc50(count) as P50 by Day&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Percentile-values-over-time/m-p/339833#M100804</guid>
      <dc:creator>ewanbrown</dc:creator>
      <dc:date>2017-04-24T09:51:12Z</dc:date>
    </item>
  </channel>
</rss>

