Dashboards & Visualizations

How do you calculate response time for events by field?

rohinisb91
Observer

Hi,

I have logs in the following format:

2018-10-31 16:00:00 START : run() for ruleId=xyz
2018-10-31 16:00:57 END : run() for ruleId=xyx

I want to plot a chart indicating the response times by ruleId. Any help is appreciated.

0 Karma
1 Solution

renjith_nair
Legend

@rohinisb91 ,
Try

index="your search" "START" OR "END"|stats range(_time) as difference by ruleId
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

renjith_nair
Legend

@rohinisb91 ,
Try

index="your search" "START" OR "END"|stats range(_time) as difference by ruleId
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

rohinisb91
Observer

Thank you!

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...