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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...