Splunk Search

Our server's configured timezone offset (TZ) has been changed from Eastern to UTC. Do we need to take any steps?

Ellen
Splunk Employee
Splunk Employee

Is there a way to update the timestamp of the legacy data to reflect the new UTC time change without reindexing?

Tags (3)
1 Solution

jrodman
Splunk Employee
Splunk Employee

We store the timestamp values in UTC always, and just display them in the localtime where the server is configured, so changing the timezone of splunk should not damage the accuracy of the timestamps in any way.

What might be trouble is if the incoming log datastream does not declare its timezone, and thus the newly arriving data is interpreted differently from the historical data (one of them is probably wrong!)

View solution in original post

gfriedmann
Communicator

For splunk forwarders running on windows, i have found that you must restart the splunkd to have it recognize a system timezone change.

0 Karma

jrodman
Splunk Employee
Splunk Employee

We store the timestamp values in UTC always, and just display them in the localtime where the server is configured, so changing the timezone of splunk should not damage the accuracy of the timestamps in any way.

What might be trouble is if the incoming log datastream does not declare its timezone, and thus the newly arriving data is interpreted differently from the historical data (one of them is probably wrong!)

gkanapathy
Splunk Employee
Splunk Employee

There is not. It's not entirely clear to me that this makes sense anyway, unless all the old data was incorrectly timestamped. If the old data was on Eastern, and was indexed as if it were on Eastern, then its timestamps should still be correct, notwithstanding subsequent changes to the time zone of new data.

Of course, if the timestamp was indexed wrong in the first place, it basically needs to be deleted and reindexed/re-imported.

gkanapathy
Splunk Employee
Splunk Employee

If your configuration or the data does not specify a time zone, then Splunk will assume that this data is is in the same time zone as the Splunk indexer. So there will be a different interpretation of timestamps unless all of them are explicitly set.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...