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!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...