Getting Data In

time difference issues

testAnalysis
Explorer

I need to be able to calculate the time difference between two dates and everytime i try anything...it returns blank
my search looks like this...
StartTime ResolvedTime
11/1/2012 9:35:45 AM 11/3/2012 9:35:45 AM

All i want to do is have the search return a result with the time difference between StartTime and ResolvedTime. So basically TimeToResolve should be 48 hours, 0 minutes, 0 seconds.

Please Help me...

Thanks

0 Karma

carmackd
Communicator
| convert timeformat="%m/%e/%Y %I:%M:%S %p" mktime(StartTime) AS StartTime_epoch mktime(ResolvedTime) AS ResolvedTime_epoch | eval age=round((ResolvedTime_epoch-StartTime_epoch)/60/60/24)
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...