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!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...