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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...