Getting Data In

props.conf TZ not working

treverce
Explorer

I have a log that is putting the timestamp in UTC without any timezone, which appears Splunk thinks this is my time and I cannot get it to understand that the timezone is UTC

Example log:

 

Feb 21, 2021 00:03:05.973 [0x7f6a027c5700] DEBUG - Completed: [127.0.0.1:42302] 206 PUT ...

In my `$SPLUNK_HOME/etc/apps/search/default/props.conf` I have added:

[default]

TZ=GMT

My timezone is set in preferences to -0800 (Pacific) but it still shows these as the same time.

Labels (1)
0 Karma

gbeatty
Path Finder

I agree with @richgalloway that you should not assign time in default.

Please review the precedence of configuration files: https://medium.com/splunkuserdeveloperadministrator/splunk-configuration-files-precedence-explained-...

You likely have something overriding the timezone in your app local or system local directory.  I would check the props where the sourcetype is defined.

Additionally, if this data is forwarded, the indexer may not parse and change the time unless you specifically tell it to go to the parsing queue.  Forwarded data will not always go through each queue that data would go through in a single-instance deployment.

https://wiki.splunk.com/Community:HowIndexingWorks

Often times when I have a item not being applied from props, I find it is because I have the props stanza "applied" after the data has gone through the parsing queue, so it is not really applied.

0 Karma

trever
Loves-to-Learn

I nuked my /etc files which caused Splunk to recreate. Didn't fix anything, so that wasn't the issue. Its not the indexed data issue the Splunk search is always in Pacific, no matter what preference I have set up

 

For example, it is 12am in CA and Splunk search thinks my user is in UTC when its set to Pacific.

trever_0-1613981034394.pngtrever_0-1613981034394.png

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

First, NEVER edit a default config file.  All changes to config files must be made in a 'local' directory.  Create the file, if necessary.

Second, don't worry about this until you fix your system timestamp problem.

---
If this reply helps you, Karma would be appreciated.
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!

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...

Turn Cisco Telemetry Into Action with Cisco Data Fabric, powered by the Splunk ...

The surge in machine data is already hitting enterprise budgets, and the agentic era will only intensify it. ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...