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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...