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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Value Insights: Now Generally Available in the CMC

Organizations are under pressure to move faster, control cost, expand AI adoption, and prove value with more ...

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...

Splunk App Dev Quarterly Roundup: AI, Agents, and Innovation!

Another quarter, another wave of innovation. From complex integrations to pushing the limits ...