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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...