Splunk Search

Timechart avg of values greater than 0

Path Finder

I'm building a time chart of avg daily backup volume, and I need to exclude entries where volume = 0. The reason being is that 0 skews my averages something awful.

0 Karma
1 Solution

SplunkTrust
SplunkTrust

@codedtech ,

Try

|timechart avg(eval(if(volume==0,null(),volume))) as avg

View solution in original post

SplunkTrust
SplunkTrust

@codedtech ,

Try

|timechart avg(eval(if(volume==0,null(),volume))) as avg

View solution in original post