Splunk Search

calculate duration on a custom time stamp

twilishyflutter
New Member

my time stamps are in %H:%M format. one of which is a custom time stamp from my json file.
is there a way i can calculate the duration with this timestamp

Tags (1)
0 Karma

cmerriman
Super Champion

try something like:

| eval newTime=strptime(timeStr, "%H:%M")

to convert the timestamps and then you should be able to use that in an eval to substract timestamps.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

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 GA in US-AWS!

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