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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...