Splunk Search

Calculate avg excluding the min and max times

carlpier
Explorer

Hello,
I am looking for a way to calculate the avg excluding the occurrence with the time_min and time_max
Here is the simple base search:
index="nbdrest-performance" sourcetype="PerfNBDCustomTSV" | chart count min(ETms) max(ETms) avg(ETms) by Service | sort count | reverse
Any help would be greatly appreciated.
Thanks in advance!

Tags (2)

fdi01
Motivator

index="nbdrest-performance" sourcetype="PerfNBDCustomTSV" | chart avg count by Service | sort by count

or

index="nbdrest-performance" sourcetype="PerfNBDCustomTSV" | stats count avg by Service | sort by count

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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