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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...