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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...