Getting Data In

Set event time as time the file was created

rusty009
Path Finder

I have a number of csv files which don't have a 'time' field in them. I would like to set the time of all the events within the csv file as the date when the file was created. Is this possible ?

0 Karma

jbrinkman
Explorer

DATETIME_CONFIG = NONE

https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf?utm_source=answers&utm_medium=in...

Under the DATETIME_CONFIG setting
* For file-based inputs (monitor, batch) the time chosen is the
modification timestamp on the file being read.

0 Karma

MousumiChowdhur
Contributor

Hi,

Can you try using DATETIME_CONFIG = CURRENT in your props.conf?

0 Karma

rusty009
Path Finder

that sets it to the current time, I want it to set it to the time the file I am indexing was created

0 Karma

ddrillic
Ultra Champion

For the UI you can try base search | eval _time = _indextime.

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...