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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...