Splunk Search

difference between the current duration and avg duration

splunkpoornima
Communicator

hi

i have one table with different task and its duration as,

TaskAction duration

task1 12.2

task 2 1.90

task1 2.22

using the stats command i found the average duration for the each task ,i want to append those average to the above table as ..
my result sholud be

Taskaction duration avg(duration)

task1 12.2 16

task2 1.90 2.97

task1 2.22 16

Tags (1)
0 Karma

Ayn
Legend
... | eventstats avg(duration) as avgdur by Taskaction | table Taskaction duration avgdur
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, ...