All Apps and Add-ons

Splunk DB Connect : intermittent Connection Refused messages

stanwin
Contributor

Hi

'Connection refused' pops up intermittently for dbxquery . Its gotten really bad with 50-50 chance of dbxquery running most times!

Tends to go aways after few retries. This is seen across several different databases so its not to do with connection limits on DB itself.

External search command 'dbxquery' returned error code 1. Script output = "RuntimeError: Failed to run query: "....query here....", params: "None", caused by: error(111, 'Connection refused'). "

Anyone experience this issues with DBX v2 ?

Splunk version 7.1.0
DBX 2.4.0

0 Karma
1 Solution

stanwin
Contributor

if you set bindIP = * this issue goes away.

./splunk_app_db_connect/local/inputs.conf
[rpcstart://default]
javahome = /opt/splunk/jre1.8.0_144
###javahome = /usr/lib64/jvm/jre
useSSL = 0
port = 9998
bindIP = *

see also : https://answers.splunk.com/answers/337368/splunk-db-connect-connection-refused.html

View solution in original post

0 Karma

stanwin
Contributor

if you set bindIP = * this issue goes away.

./splunk_app_db_connect/local/inputs.conf
[rpcstart://default]
javahome = /opt/splunk/jre1.8.0_144
###javahome = /usr/lib64/jvm/jre
useSSL = 0
port = 9998
bindIP = *

see also : https://answers.splunk.com/answers/337368/splunk-db-connect-connection-refused.html

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...