Getting Data In

how to change the upload time stamp?

Abilan1
Path Finder

Hi ,

Actually I am having splunk index servers in Eastern Time Zone (UTC-5:00) but some of my application servers are in Hong Kong Time Zone (UTC+ 08:00). so now if I see the data in splunk it's all are in Eastern Time zone. I wanted to change the time stamp to Hong Kong Time zone only for these servers.

Tags (2)
0 Karma

woodcock
Esteemed Legend

To change this you can add several host= stanzas inside props.conf with TZ=Hongkong for those particular servers and either deploy them to the Forwarders or the Indexers and restart the Splunk instances there. This will effect only events indexed after the restart. You can purge the wrong events from the Indexers, clean the fishbucket on the Forwarders and then they will resend the events.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

No data can be changed once it's been indexed, including timestamps. Having all events in a common time zone makes it far easier to correlate them without any confusing mental math. One could probably come up with a sequence of eval statements to convert Hong Kong times back to that time zone, but that might be confusing and would not work for users in other time zones.

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

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...