Splunk Search

How do I adjust a time calculation for results being generated in multiple timezones

bigtyma
Communicator

I need to calculate the duration of time between events however my source does not adjust for timezones.

In my example a calculating the duration of when a helpdesk log was created and acknowledged is generating negative numbers for persons that live outside the timezone where the database entry was added.

Is there a way to dynamically add +1 hour to results that generate a negative number?

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Assuming the result is in seconds,

eval result = if(result<0, result+3600, result)
0 Karma

bigtyma
Communicator

Thank you!

0 Karma
Get Updates on the Splunk Community!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...