Getting Data In

How to convert UTC to CST

martinnepolean
Explorer

We are receiving events on our syslog collector in UTC timezome. Below is the sample event.

I have configured the below props on our search head, My assumption was it will pick the searchhead timezone while showing the events in SH.but it is not converting the timezone to CT

[sourcetype]
DATETIME_CONFIG = CURRENT

Oct  8 13:59:00 x.x.x.x [Audit] User xxxxlogged in on the web GUI interface.
0 Karma

ivanreis
Builder

Please try this one at props.conf using the host

[host::server_sourcename]
TZ = US/Central

OR by source

[source::your_source]
TZ = US/Central

OR by sourcetype

[sourcetype::your_sourcetype]
TZ = US/Central

For further information, please check this document: https://answers.splunk.com/answers/135193/splunk-indexing-and-time-zone-normalization.html

0 Karma

martinnepolean
Explorer

No ivanreis, it didnt work, below is my props file content

source = /opt/syslog_ng/logs/xxx//-xxx.log

[source::/opt/syslog_ng/logs/xxx/*/*xxx.log]
TZ = US/Central

0 Karma

ivanreis
Builder

Where you are deploying this configuration?
In order to have this configuration work properly, the props.conf have to be deployed at the indexer or heavy forwarder tier to parse the timezone properly before indexing, if you are not running on a Splunk standalone instance. Use the btool to troubleshoot your configuration.

https://docs.splunk.com/Documentation/Splunk/7.3.2/Troubleshooting/Usebtooltotroubleshootconfigurati...

0 Karma

martinnepolean
Explorer

I have deployed them on indexers, I have created a new app for props file and deployed yo all index peers. But still, the time conversion is not happening.

[source::/opt/syslog_ng/logs/xxx/*/*xxx.log]
TZ = US/Central

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...