Splunk Search

Non-integer percentiles?

yplambert
New Member

I would like to find the 99.99th percentile of a value.

The perc(Y) function expects X to be an integer 1-99.

Any ideas?

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Using p99.99(field) works fine for me:

index=_internal | timechart span=1h count | stats p99(count) p99.99(count) max(count)

Yields this:

  p99(count)  p99.99(count)  max(count)
1       6500          7000         7879

What Splunk version are you using?

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Using p99.99(field) works fine for me:

index=_internal | timechart span=1h count | stats p99(count) p99.99(count) max(count)

Yields this:

  p99(count)  p99.99(count)  max(count)
1       6500          7000         7879

What Splunk version are you using?

0 Karma

yplambert
New Member

You are right! I tried it and it didn't work, but I must have done something else wrong; it works fine for me now. Thanks!

0 Karma

joebensimo
Path Finder

Maybe filter for all values greater than the 99th percentile, and then take the 99th percentile of that:

| eventstats perc99(Y) as ninetynine
| where Y> ninetynine
| stats perc99(Y)

However, this won't be quite right in cases that you have more than one event with the 99th percentile value.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...