Getting Data In

Is it possible to use the header in a csv file for timestamps?

Moogz
Splunk Employee
Splunk Employee

I have a CSV file that has the following header:

ColumnName1, ColumnName2, Date1, Date2, Date3, Date4, Date5, Date6, and so on......

The first two columns describe my data and the rest of the columns consist of values for each of the different dates. Is there a way to get splunk to use the date columns as a timestamp for all of the values in each column?

0 Karma

ogdin
Splunk Employee
Splunk Employee

In Splunk 6, you can choose one of the Date columns to use as the timestamp.

http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime

TIMESTAMP_FIELDS = Date1

0 Karma
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, ...