Splunk Enterprise

datetime.xml

VijaySrrie
Builder

Hi Team,

I am asked to use datetime.xml for my logs. May I know how to use it? In props do I need to configure datetime.xml? or I need to point it to datetime.xml which splunk has?

if I need to point it how to write the configs?

Index=ps_main

sourcetype = psps

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk ships with a datetime.xml file that is used by default unless the relevant props.conf file contains DATETIME_CONFIG=CURRENT or DATETIME_CONFIG=NONE.  You can use your own datetime.xml file by putting DATETIME_CONFIG=/path/to/your/datetime.xml in the appropriate props.conf file.

---
If this reply helps you, Karma would be appreciated.
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...