Getting Data In

How to set up time properly?

cdp_fap
Observer

I use TIME_PREFIX and TIME_FORMAT to recognize the timestamp of my logs. There is a field, named timezone. It is the timezone of the logs. This value depends on the system generated the logs. It may be timezone=-0400, timezone=+0000 etc. That depends on the coming data. How I can I set the timezone so that _time will adjust correct.

For example:
TIMESTAMP= 2020/04/10 08:20:50.370
timezone = -400

Local timezone of my SPLUNK is +0800, How to set the timezone so that 2020/04/10 08:20:50.370 can be convert to my local time 2020/04/10 20:20:50.370. When I search my data , I want the Time(_time) will shown as my local time.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If you're using a forwarder to send the logs to Splunk, put the props.conf on the forwarder with the TZ setting for that server.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If you're using a forwarder to send the logs to Splunk, put the props.conf on the forwarder with the TZ setting for that server.

---
If this reply helps you, Karma would be appreciated.
0 Karma

cdp_fap
Observer

No, I don't use forwarder

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Consider using [host::...] or [source::...] stanzas to set TZ for each host or source.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...