Splunk Search

Elapsed time

david_fresne
New Member

How to get elapsed time? I have the following
|eval tnow = now() |convert ctime(tnow) as currtime | eval el_time =(currtime-rtime) | table ServName rtime currtime el_time
Thanks

Tags (3)
0 Karma

mw
Splunk Employee
Splunk Employee

What output are you getting? You may need to run a convert on rtime if you're not already, but something like this should work:

... | eval now = now() | eval tdelta = now - rtime | table ...
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...