All Apps and Add-ons

Splunk DB Connect: When trying to connect to MySQL, why am I receiving "jdbcUrlFormat is a mandatory parameter for the database connection" error message?

lucasbarbosa
Explorer

I'm trying to connect Splunk to MySQL. I've already downloaded "mysql-connector-java-5.1.40-bin" and put it in the directory. But the following error appeared, what can it be?

Error: jdbcUrlFormat is a mandatory parameter for the database connection.

In db_connection_types.conf it looks like this:

[mysql]
displayName = MySQL
serviceClass = com.splunk.dbx2.MySQLJDBC
jdbcUrlFormat = jdbc:mysql://<host>:<port>/<database>
jdbcUrlSSLFormat = jdbc:mysql://<host>:<port>/<database>?useSSL=true&requireSSL=true&verifyServerCertificate=false
jdbcDriverClass = com.mysql.jdbc.Driver
port = 3306
testQuery = SELECT 1
ui_default_catalog = $database$
0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@lucasbarbosa - Were you able to test out jcoates solution? Did it work? If yes, please don't forget to resolve this post by clicking on "Accept". If you still need more help, please provide a comment with some feedback. Thanks!

0 Karma

jcoates_splunk
Splunk Employee
Splunk Employee

because that's supported by default, I would expect it to work out of the box. Try rolling back any customizations?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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