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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...