<?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: Why do Stats and Evenstats return different results when calculating percentiles? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210139#M61461</link>
    <description>&lt;P&gt;If you are using Splunk Cloud and want to change this limit, file a Support ticket.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 12:53:21 GMT</pubDate>
    <dc:creator>hliakathali_spl</dc:creator>
    <dc:date>2016-08-03T12:53:21Z</dc:date>
    <item>
      <title>Why do Stats and Evenstats return different results when calculating percentiles?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210136#M61458</link>
      <description>&lt;P&gt;I am trying to work out the 99th percentile of some response times and after seeing discrepancies in a couple of search queries I have narrowed it down to the | Stats and | Eventstats command.&lt;/P&gt;

&lt;P&gt;My Eventstats query:&lt;BR /&gt;
    source="script-output" name="MyScriptResponses"&lt;BR /&gt;
    | rename response{}.ms as response_time_ms&lt;BR /&gt;
    | mvexpand response_time_ms&lt;BR /&gt;
    | eventstats p99(response_time_ms) as "99th response time (ms)" &lt;BR /&gt;
    | table  name "99th response time (ms)"&lt;BR /&gt;
returns 200&lt;/P&gt;

&lt;P&gt;My Stats query:&lt;BR /&gt;
    source="http-simple" name="MyScriptResponses"&lt;BR /&gt;
    | rename response{}.ms as response_time_ms&lt;BR /&gt;
    | mvexpand response_time_ms&lt;BR /&gt;
    | stats p99(response_time_ms) as "99th response time (ms)" &lt;BR /&gt;
    | table  name "99th response time (ms)"&lt;BR /&gt;
returns 190&lt;/P&gt;

&lt;P&gt;Some info about my data:&lt;BR /&gt;
There are 3828 response times.&lt;BR /&gt;
It is a set time of "Previous Week"&lt;BR /&gt;
I tried the same with Average and got the same answers.&lt;BR /&gt;
I tried different percentiles; 75, 90, 95, 99 and only 90 returned the same data.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210136#M61458</guid>
      <dc:creator>MattLingwood</dc:creator>
      <dc:date>2020-09-29T10:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why do Stats and Evenstats return different results when calculating percentiles?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210137#M61459</link>
      <description>&lt;P&gt;"Generate summary statistics of all existing fields in your search results and save them as values in new fields. Eventstats is similar to the stats command, except that aggregation results are added inline to each event and only if the aggregation is pertinent to that event."&lt;/P&gt;

&lt;P&gt;In the limits.conf file, the max_mem_usage_mb parameter is used to limit how much memory the stats and eventstats commands use to keep track of information. If the eventstats command reaches this limit, the command stops adding the requested fields to the search results. You can increase the limit, contingent on the available system memory.&lt;/P&gt;

&lt;P&gt;Also, here are the link to the documentation files for stats and evenstats respectively:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Stats" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Stats&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210137#M61459</guid>
      <dc:creator>hliakathali_spl</dc:creator>
      <dc:date>2020-09-29T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why do Stats and Evenstats return different results when calculating percentiles?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210138#M61460</link>
      <description>&lt;P&gt;As a Splunk cloud user I have no control over the limits.conf file. Would you recommend which is better/More accurate by default? eventstats or stats?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210138#M61460</guid>
      <dc:creator>MattLingwood</dc:creator>
      <dc:date>2016-08-03T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why do Stats and Evenstats return different results when calculating percentiles?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210139#M61461</link>
      <description>&lt;P&gt;If you are using Splunk Cloud and want to change this limit, file a Support ticket.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-Stats-and-Evenstats-return-different-results-when/m-p/210139#M61461</guid>
      <dc:creator>hliakathali_spl</dc:creator>
      <dc:date>2016-08-03T12:53:21Z</dc:date>
    </item>
  </channel>
</rss>

