Splunk Search

How to build dynamic columns using a Splunk search for data from an indexed CSV file without headers?

kotig
Path Finder

Our application has CSV log files and the CSV is indexed in Splunk, but our CSV does not have any column headers. How do I build a search to read the below data and create field names myself with a search?

Below is our Test Data in the CSV file:
Tester, test, testing
coder, code, coding
manger, lead, leader

I wanted to create a table with field1, field2, field3 where the data from each column goes correctly into each field.

0 Karma

woodcock
Esteemed Legend

Like this:

props.conf:

[YourSourcetypeHere]
TRANSFORMS-ThisNameIsArbitraryButShouldBeUnique = commalist

transforms.conf:

[commalist]
DELIMS = ","
FIELDS = field1, field2, field3
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 ...