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!

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 ...