Splunk Search

How to calculate the mean and standard deviation in Splunk?

pavanae
Builder

I have a search as follows :-

My search | timechart span=1h limit=0 count by city

Now how can I calculate the mean activity volume per city?

And how to find the one's more than n standard deviations above the mean?

0 Karma
1 Solution

cmerriman
Super Champion

https://docs.splunk.com/Documentation/Splunk/6.5.0/Search/Findingandremovingoutliers
this is a doc on removing outliers.

this might get your your average and stdev. create an eval to find the difference for n standard deviations above the mean.

My search 
| timechart span=1h limit=0 count by city
|stats avg(count) as avg stdev(count) as stdev by city

View solution in original post

cmerriman
Super Champion

https://docs.splunk.com/Documentation/Splunk/6.5.0/Search/Findingandremovingoutliers
this is a doc on removing outliers.

this might get your your average and stdev. create an eval to find the difference for n standard deviations above the mean.

My search 
| timechart span=1h limit=0 count by city
|stats avg(count) as avg stdev(count) as stdev by city
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, ...