Getting Data In

CSV field header/label based on a value in column.

nikorc
Loves-to-Learn Lots

So I have a csv file that is generated while a program runs. The 1st 4 columns are same headers. DATE,TIME, LOCATION,EVENT. After this there can be 4-8 more fields with unique headers on what the event field is equal to.

For example if the event = 1 then the field and headers would be. DATE,TIME, LOCATION,EVENT,speed,tilt

For example if the event = 2 then the field and headers would be. DATE,TIME, LOCATION,EVENT,altitude,latitude,longitude.

I am not fully sure how to get this data in with the proper field headers.

example:
2020/03/03,13:40:23,Ohio,1,200,30
2020/03/03,13:40:23,Ohio,2,33000,40.4173,82.9071

Tags (1)
0 Karma

to4kawa
Ultra Champion

`INGEST_EVAL` makes new fields and existed fileds null.

0 Karma

nikorc
Loves-to-Learn Lots

Thank you so much! This is exactly what I was looking for.

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...