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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...