Splunk Dev

Use import date/time

dbcase
Motivator

Hi,

Is there a way to use the import date and time vs. having splunk try to interpret a date in the event? The date in our event is meaningless as far as using it for any data analysis.

Tags (1)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

There is an attribute in props.conf called DATETIME_CONFIG which you can set to value CURRENT and Splunk will treat current time (time of import) as the event timestamp.

[yoursourcetype]
...line breaking configs..
DATETIME_CONFIG = CURRENT

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

There is an attribute in props.conf called DATETIME_CONFIG which you can set to value CURRENT and Splunk will treat current time (time of import) as the event timestamp.

[yoursourcetype]
...line breaking configs..
DATETIME_CONFIG = CURRENT
0 Karma

dbcase
Motivator

Perfect! Thanks Somesoni2!

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...