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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...