Getting Data In

timezone question

a212830
Champion

Hi,

I have a feed that sends messages using the UTC timezone. The timezone itself is never listed, but the vendor has assured me that this is the case (and it looks correct). Should I reference the timezone with a "TZ = UTC" in props.conf, or should I put a %T in the TIME_FORMAT, even though the timezone isn't in the message.

For example:

2014-01-14 23:54:17 1.2.3.4 message....

My props.conf has:

TIME_FORMAT = %Y-%m-%d %H:%M:%S
SHOULD_LINEMERGE = false
TIME_PREFIX = ^
TZ = UTC

or should it have:
TIME_FORMAT = %Y-%m-%d %H:%M:%S %T
SHOULD_LINEMERGE = false
TIME_PREFIX = ^

Update: it appears to be ignoring my timezone, regardless. As the event times are matching what is in the logs, and that should not be the case.

Tags (2)
0 Karma

lukejadamec
Super Champion

Try setting MAX_TIMESTAMP_LOOKAHEAD = 20 in your props.conf. That will keep Splunk from trying to interpret 1.2.3.4 as the TZ.

0 Karma

lukejadamec
Super Champion

What is your user default timezone? Splunk will adjust the search results based on the user timezone.
If no timezone is available in the event, then Splunk uses the indexer timezone. What is the indexer timezone?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...