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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...