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!

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...