Getting Data In

How to set Timestamp that is in the first line of the file

ejmin
Path Finder

Here is the format of my .csv file

  1. Store|460|2018/09/04
  2. ColumnX|ColumnY|ColumnZ|ColumnXY|ColumnYZ
  3. dataX| dataY|dataZ|dataXY|dataYZ

Assume the pipe is tab

Normally when I ingest the file in tab delimited format or tsv file the line that I can see is the line starting from 2 and so on because splunk automatically detects the line 2 for it to become a column header. I also tried for the Timestamp Fields and it doesnt work because the timestamp doesnt have column field and also the same for the Timestamp Format

Tags (1)
0 Karma

lakshman239
Influencer

You need to use INDEXED_EXTRACTIONS = TSV and also specify the time fields and header fields. Pls check this and also share your inputs and props.conf on your forwarder instance.

https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Extractfieldsfromfileswithstructureddata#For...

0 Karma

ejmin
Path Finder

Hmmm... I think its not applicable to my test environment because its a single instance and doesn't use Forwarder. I tried your INDEXED_EXTRACTIONS=TSV to my Advanced tab in indexing the data and it seems not work... My goal is to extract timestamp to my first line of my file. but anyway Thank you for answering

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...