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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...