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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...