Getting Data In

Configuring to support searches for events timestamped in future

matt_1
Explorer

We have an global application hosted within a VM environment feeding a common Splunk index server. However the server times set onto these VMs are relative to the region they support (EMEA hosts set to CET/CEST, APAC set to SSG). The Splunk index and distributed search servers themselves are in CST/CDT. The logs from all regions will contain timestamps relative to their UTC offset.

How would I get around the issue where data coming in +8h to +14h CST/CDT has be be searched in the future? Ideally, I would like the searches used by our APAC and EMEA users to still resolve in their local time, but I'd also like to insure the cross-region correlation is not impacted by disparities caused by UTC offsets.

Is this an instance where the TZ needs to be specified at the source (ie light forwarders); or is this something we define at search or index time? Anything has to be better than what we are doing now, which is setting the offsets within times.conf for the EMEA and APAC search heads.

Tags (1)
0 Karma
1 Solution

parallaxed
Path Finder

AFAIK, search nodes can have their timezones adjusted using the TZ environment variable, but the offset/timestamping will officially occur at index time, so you should configure it on your indexing heads.

You can define it using "TZ" in props, providided you have some distinguishing feature (perhaps in the hostname or source path) available to you, e.g.:

[host::apac*] TZ=Asia/Tokyo

[source::/path/to/apac*] TZ=Asia/Tokyo

http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Propsconf

If your data is somehow farther in the future (forecast data or what have you), you'll have to up the MAX_DAYS_HENCE value from it's default of 2.

View solution in original post

0 Karma

parallaxed
Path Finder

AFAIK, search nodes can have their timezones adjusted using the TZ environment variable, but the offset/timestamping will officially occur at index time, so you should configure it on your indexing heads.

You can define it using "TZ" in props, providided you have some distinguishing feature (perhaps in the hostname or source path) available to you, e.g.:

[host::apac*] TZ=Asia/Tokyo

[source::/path/to/apac*] TZ=Asia/Tokyo

http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Propsconf

If your data is somehow farther in the future (forecast data or what have you), you'll have to up the MAX_DAYS_HENCE value from it's default of 2.

0 Karma

matt_1
Explorer

Thanks. I suspected so, but was hoping there was another method. Unfortunately we don't have any distinguishing elements outside of the sourcetypes we're setting. I'll place an enhancement request to at least allow simple pattern matching for sourcetypes within props.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...