All Apps and Add-ons

How to setup splunk db connect

danilreddy
Loves-to-Learn Everything

Hi,

 

I have installed splunk 8.1.8 on my linux. On login to splunk UI, I have gone through apps and installed splunk_db_connect by uploading the zip file splunk-db-connect_380.zip. 

 

Then when I go to splunk_db_connect and setup. It is giving errors like 

"cant communicate with task server, please check your settings"

"str object have no attribute decode"

 

etc error messages in the UI.

On restarting splunk and on running btool I see the below message 

***************

Checking: /opt/splunk/etc/apps/splunk_app_db_connect/default/inputs.conf
Invalid key in stanza [server] in /opt/splunk/etc/apps/splunk_app_db_connect/default/inputs.conf, line 2: run_only_one (value: false).
Invalid key in stanza [dbxquery] in /opt/splunk/etc/apps/splunk_app_db_connect/default/inputs.conf, line 5: run_only_one (value: false).

***************

 

In logs, I see only one log file related to splunk_db_connect. The file name is splunk_app_db_connect_dbx.log. I cant see other files. In this log file I see below errors 

********************

2022-02-18T06:45:18-0600 [ERROR] [settings.py], line 89 : Throwing an exception
Traceback (most recent call last):
File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/dbx2/rest/settings.py", line 76, in handle_POST
self.validate_java_home(payload["javaHome"])
File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/dbx2/rest/settings.py", line 215, in validate_java_home
is_valid, reason = validateJRE(java_cmd)
File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/dbx2/jre_validator.py", line 73, in validateJRE
output = output.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

**************

Below is the snapshot of splunk_db_connect settings in the UI

danilreddy_0-1645190135157.png

 

Please help me how to resolve the issues and setup splunk DB connect succesfully.

 

Thanking you.

Labels (2)
0 Karma

somesoni2
Revered Legend
0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...