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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...