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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...