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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...