Getting Data In

Current date time in whiile reading from CSV

jimjohn
Path Finder

Hi

How can i add current time to _time filed while reading data from CSV file.
I have added below in Splunk\etc\system\default\props.conf
[csv]
URRENT
TIME_FORMAT = %y-%m-%d %H:%M:%S
But it seems date is taking from file name. My file name is like ABC20140107.
I want current time in _time field.How can i achieve this.

Tags (3)
1 Solution

gfuente
Motivator

Use this props.conf:

[csv]
DATETIME_CONFIG = CURRENT

regards

View solution in original post

gfuente
Motivator

Use this props.conf:

[csv]
DATETIME_CONFIG = CURRENT

regards

jimjohn
Path Finder

Thanks i have added this and solved

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 ...