Getting Data In

Is Splunk able to automatically offset timestamps at indextime when TZ is embedded in the event?

the_wolverine
Champion

Would this be automatic or would additional TZ configuration need to be set in order for this to work?

Tags (2)
0 Karma
1 Solution

jbsplunk
Splunk Employee
Splunk Employee

The answer in short is No. If TZ is embedded into the event, the Indexer will trust the embedded TZ explicitly and ignore any instructions that are given regarding timestamp in props.conf, irrespective of variance.

View solution in original post

woodcock
Esteemed Legend

There is only 1 way to override an in-event TZ setting and that is with TZ_ALIAS; read about it here:

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

alacercogitatus
SplunkTrust
SplunkTrust

This would be correct for version 6.X.

jbsplunk
Splunk Employee
Splunk Employee

The answer in short is No. If TZ is embedded into the event, the Indexer will trust the embedded TZ explicitly and ignore any instructions that are given regarding timestamp in props.conf, irrespective of variance.

alacercogitatus
SplunkTrust
SplunkTrust

Actually, @jbsplunk is correct. The timestamp on this question was from Feb 26, 2013. At the time, Splunk 4.3 was the de-facto version, Splunk 5 would be released during .conf2013. So according to the correct documentation, http://docs.splunk.com/Documentation/Splunk/4.3.6/admin/Propsconf, the TZ option was the only option. TZ_ALIAS wasn't an option until Splunk 6.0.

woodcock
Esteemed Legend

This is incorrect; you can use TZ_ALIAS to override in-event TZ values (see my answer).

0 Karma

the_wolverine
Champion

I just care about the added workload of having to process a TZ at all vs having the event use GMT (or the same TZ as my indexer.) Sounds like there is no added "load" with an embedded TZ.

0 Karma

jrodman
Splunk Employee
Splunk Employee

The longer answer is that Splunk may not automatically recognize the TZ offset expression. If you're using a common pattern, Splunk should recognize it, but if it's less common you may need a TIME_FORMAT to specify where the offset is located.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...