Getting Data In

Import csv with header that change column order between different files

edoardo_vicendo
Contributor

Hello,

We have to import a csv file that always contains the same amount of column (and corresponding values), but the system that generates it sometimes change the order of the header columns, like this:

 

File01.csv

field01,field02,field03

 

 

 

File02.csv

field03,field01,field02

 

 

Is there any way to ingest the file without using in props.conf this set-up?

INDEXED_EXTRACTIONS=csv

 

The reason is that using the INDEXED_EXTRACTIONS Splunk is adding those fields in the .tsidx and we would like to avoid that.

 

Thanks a lot,

Edoardo

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...