Getting Data In

Set event time as time the file was created

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



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



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

0 Karma

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

Ultra Champion

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

0 Karma
Get Updates on the Splunk Community!

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...

New Customer Testimonials

Enterprises of all sizes and across different industries are accelerating cloud adoption by migrating ...