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
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...