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
Revered Legend

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
Revered Legend

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!

New Year. New Skills. New Course Releases from Splunk Education

A new year often inspires reflection—and reinvention. Whether your goals include strengthening your security ...

Splunk and TLS: It doesn't have to be too hard

Overview Creating a TLS cert for Splunk usage is pretty much standard openssl.  To make life better, use an ...

Faster Insights with AI, Streamlined Cloud-Native Operations, and More New Lantern ...

Splunk Lantern is a Splunk customer success center that provides practical guidance from Splunk experts on key ...