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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...