Installation

Is there a way to change the delimiter in Splunk DB Connect?

dlovett
Path Finder

We have a need to use the vertical bar (ie "|") as a delimiter. Splunk DB Connect uses a comma. I tried searching for a config parameter but was unsuccessful.

Tags (1)
1 Solution

ziegfried
Influencer

There is currently no way to change the delimiter for the CSV output format of database inputs. But there is an alternative. It requires a little more work to set it up, tough.

You can select the "Template" output format which allows you to specify an arbitrary format you can define by using "replacement tokens". For example:

$timestamp$|$COLUMN1$|$COLUMN2$|$COLUMN3$

DB Connect then replaces those tokens $<COLUMN NAME>$ with the actual content from this column.

View solution in original post

ziegfried
Influencer

There is currently no way to change the delimiter for the CSV output format of database inputs. But there is an alternative. It requires a little more work to set it up, tough.

You can select the "Template" output format which allows you to specify an arbitrary format you can define by using "replacement tokens". For example:

$timestamp$|$COLUMN1$|$COLUMN2$|$COLUMN3$

DB Connect then replaces those tokens $<COLUMN NAME>$ with the actual content from this column.

dlovett
Path Finder

That is correct. I should have mentioned delimiters for database inputs 🙂

0 Karma

ziegfried
Influencer

Which delimiter is it, that you want to change? The format of events generated by database inputs?

0 Karma
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, ...