All Apps and Add-ons

DB Connect (latest as of 8/8) connecting to mircosoft sql server

kelseycasco
New Member

Hi,
I am trying to connect a sql server database to Splunk. I keep getting the error: "Error in 'dbxquery' command: Could not find file: 'java.path'." I have a Java folder in C:\Program Files\Java where I have a jre1.8.0 file and a sqljdbc_4.2 file. In Configurations/Settings/General the JRE path is C:\Program Files\Java\jre1.8.0_221 and task server port is 9998.
I have:
- installed the sql server generic driver and the jTDS driver
- put the sqljdbc_auth.dll file in my windows/system32 folder
- put jtds jar file and sqljdbc42 jar file in C:\Program Files\Splunk\etc\apps\splunk_app_db_connect\drivers.

I have a valid connection set up with the correct identity for my database. I've gone through the documentations many times and the trouble shooting techniques but I'm not sure how to fix this error. I'm also using trial mode so I'm not sure if that makes a difference

0 Karma

DenM
Explorer

Hello,

When you install DB connect for Splunk , you need first to install and setup the JDBC (Java Database Connectivity database) driver.
You need to configure the driver and java into the UI of DB connect on your Splunk instance. In my cases i always use the driver JTDS with windows authentication the other one doesn't work (dont know why) try different drivers maybe.

Check this:
https://docs.splunk.com/Documentation/DBX/3.1.3/DeployDBX/Installdatabasedrivers#Install_the_SQL_Ser...

https://docs.splunk.com/Documentation/DBX/3.1.4/DeployDBX/Installdatabasedrivers

Hope it helps

Den

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