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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...