<?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: grouping requests by percentile in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560438#M159270</link>
    <description>&lt;P&gt;count isn't created in your search - does it already exist in your events?&lt;/P&gt;&lt;P&gt;Also, you should change the order in the case statement since over 95% is also over 75% so would be tagged as being over 75% before it gets to evaluate whether it is over 95%&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 06:40:40 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-07-22T06:40:40Z</dc:date>
    <item>
      <title>grouping requests by percentile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560433#M159268</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to group the count by percentile however all is showing in 0% which is in correct:&amp;nbsp;&lt;/P&gt;&lt;P&gt;source="C:\\inetpub\\logs\\LogFiles\\*" host="WIN-699VGN4SK4U" index="main" |bucket span=1d _time| eventstats p75(count) as p75 p95(count) as p95 p99(count) as p99&lt;BR /&gt;| eval Percentile = case(count &amp;gt;= p75, "75%", count &amp;gt;= p95, "95%", count &amp;gt;= p99, "99%", 1=1, "0%")&lt;BR /&gt;| stats count by Percentile&lt;/P&gt;&lt;P&gt;Not really sure how to fix, any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 05:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560433#M159268</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2021-07-22T05:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: grouping requests by percentile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560438#M159270</link>
      <description>&lt;P&gt;count isn't created in your search - does it already exist in your events?&lt;/P&gt;&lt;P&gt;Also, you should change the order in the case statement since over 95% is also over 75% so would be tagged as being over 75% before it gets to evaluate whether it is over 95%&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560438#M159270</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-22T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: grouping requests by percentile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560442#M159272</link>
      <description>&lt;P&gt;Thanks for your reply, I have re-wrote my search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=test sourcetype=test |bucket span=1m _time&lt;BR /&gt;| stats count as total&lt;BR /&gt;| eventstats perc99(total) as p99, perc95(total),perc75(total) as p75| eval Percentile = case(total &amp;gt;= p99, "99%", total &amp;gt;= p95, "95%", total &amp;gt;= p75, "75%", 1=1, "0%")&lt;BR /&gt;| stats sum(total) as "Totals" by Percentile&lt;BR /&gt;| rename Totals as "Total Transactions"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however this is now only showing the 99% and not 75% or 99%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 07:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560442#M159272</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2021-07-22T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: grouping requests by percentile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560446#M159274</link>
      <description>&lt;P&gt;It also looks like it is just selecting the first Percentile in the case statement no matter what it is.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 09:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560446#M159274</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2021-07-22T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: grouping requests by percentile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560450#M159275</link>
      <description>&lt;P&gt;You have not included _time in the stats so you will get a single result&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 09:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-requests-by-percentile/m-p/560450#M159275</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-22T09:44:31Z</dc:date>
    </item>
  </channel>
</rss>

