All Apps and Add-ons

Chinese Can't Be Displayed Correctly In DB Connect

perlish
Communicator

Hello,
Now,I just use DB connect to load my Mysql.But I have some difficulties with the charset.There are some Chinese in my DB and they can't be displayed correctly.I already write 'charset = gb2312' in '/opt/splunk/etc/apps/dbx/local/database.conf',but it seems not work.Please tell me the correct solution,thanks a lot!

0 Karma

ziegfried
Influencer

DB Connect (actually the MySQL JDBC driver) automatically uses the default character encoding configured on the database server. If a database on your server uses a different one, then it's necessary to override it for a the stanza in database.conf.

[somemysqldb]
type = mysql
...
arg.useUnicode = true
arg.characterEncoding = EUC_CN

(Note that adding arg.* options to database.conf will cause a warning message to be displayed, those can be safely ignored)

Here's a link to a chapter of the MySQL JDBC driver reference which covers character encodings: http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-charsets.html

jasontsang
New Member

The answer is no longer working on splunk db connect v2.

Anyone have a solution for db connect v2?

0 Karma

araitz
Splunk Employee
Splunk Employee

Can you open a support case so that we can get additional detail? In the meantime, I opened DBX-249 to keep track of this.

0 Karma
Get Updates on the Splunk Community!

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

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...