Splunk Dev

95 percentile

chaitu99
Explorer

How to check 95th percentile of a particular message (Ex: Message ok) which is coming 20 times.

Ex
03/22/2013 03:38:56.752 Message ok

which is coming 20 times.

Please tell me the same.

Tags (1)
0 Karma

chaitu99
Explorer

Hello
My requiremet is if "message ok" will come in log file then that is successful.

i am running it 20 times, so 20 times "message ok" will come in log.
i have to check the 95th percentile of success rate.

0 Karma

chaitu99
Explorer

Hello
My requiremet is if "message ok" will come in log file then that is successful.

i am running it 20 times, so 20 times "message ok" will come in log.
i have to check the 95th percentile of success rate.

0 Karma

lpolo
Motivator

You can use the perc()x(field) function. More information:

http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/CommonStatsFunctions

Example:
Let's say that your field OK="Message ok". Then, you could use the perc(x)(field) function as follow:

earliest=-1d@d latest=@d index=main sourcetype=messages|stats perc95(ok)

earliest=-7d@d latest=@d index=main sourcetype=messages|timechart span=d perc95(ok)

kristian_kolb
Ultra Champion

Have you checked the percX() function for stats?

http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Stats
http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/CommonStatsFunctions

your search | stats perc95(your_field) | the rest of your search

/k

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...