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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...