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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...