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!

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...