Getting Data In

csv files with variable structure - how to input ?

flyingpiglet
Engager

Hi,
There is a task to index csv structured files where the structure depends on one or several fields. For example in one file you may have:

Blockquote
field1,field2,keyfield1,field3,...,fieldN
field1,field2,keyfield2,anotherfield3,anotherfield4,...,anotherfieldM
Blockquote

Each record set and length can be completely different except first common fields and keyfields, which we know. We also know the headers set for each keyfield.
Is there a way to help splunk automatically index the files depending on the keyfield value?

Thank you!
Alex

Tags (3)
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, ...