Getting Data In

How to create a props.conf file for time format

bnichols024
New Member

My timestamp is appearing as such:

2019-12-10T18:13:42-05:00

My props.conf file looks like this:

TIME_FORMAT=%Y-%m-%dT%H:%M:%S-%:z

Is this correct? Some of my indexes are presenting a really strange date compared to the time stamp but I think the devices they are coming from my be in a different TZ. My next question would be how to convert to EST.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The minus sign is covered by %z so all you need is TIME_FORMAT=%Y-%m-%dT%H:%M:%S%:z.

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

twinspop
Influencer

I would add use %F and %T, so %FT%T%:z

Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...