Getting Data In

What is the best way to adjust the time value for incoming syslog events from a specific host

ntaylorsplunk
Explorer

I have a one host that has a time offset of +5 hours and would rewrite the timestamp to represent the local time zone before the event is indexed. What's the best way to do this?

Tags (1)
0 Karma

lukejadamec
Super Champion

You would use the TZ parameter in props.conf
Here is a link to the documentation:

http://docs.splunk.com/Documentation/Splunk/latest/Data/Applytimezoneoffsetstotimestamps

ntaylorsplunk
Explorer

Forgot to mention, there is no timezone or offset information in the timestamp... The timestamp format from the incoming event is %b %d %T

0 Karma

Masa
Splunk Employee
Splunk Employee

No need to have timezone information in events. As lukejadamec is saying, you can make use of TZ attribute

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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