Splunk Search

Display Standard Deviation (stdev) Percentage

albyva
Communicator

I'm looking to calculate the Standard Deviation percentage (stdev / mean) * 100
but I'm wondering how do I craft the (eval) and then display all the fields (stdev, mean, and percentage)?

index=generic
| stats mean(bps_out) stdev(bps_out) by router

Thanks,

1 Solution

rturk
Builder

Hi Albyva,

Give the following a try:

index=generic
| stats mean(bps_out) AS mean, stdev(bps_out) AS stdev BY router
| eval stdev_percentage=(mean/stdev)*100

Let me know how you go 🙂

RT

References:

View solution in original post

rturk
Builder

Hi Albyva,

Give the following a try:

index=generic
| stats mean(bps_out) AS mean, stdev(bps_out) AS stdev BY router
| eval stdev_percentage=(mean/stdev)*100

Let me know how you go 🙂

RT

References:

albyva
Communicator

Thanks. That worked like a charm.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...