I installed splunk db following the docs available in my local instance and getting message:
Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect": Introspecting scheme=server: script running failed (exited with code -1073740940).
upon accessing the app
Can not communicate with task server, please check your settings.
and
Unable to establish a secure connection to DBX Server, please make sure it is started and listening on 9998 port or consult documentation for details.
Need help correcting this to be able to use the app. Thanks!
Figured it out, the default 3.02 app install points DB Connect to a JRE Path it should be pointed to the JDK Path !
You need to specify the JDK Install path rather than keeping the default string value that points to JRE Path
Configuration / Settings / General under JRE Installation path remove what's there and add the path for JDK instead, then restart the SPLUNKD service
It is due to JAVA_HOME env variable. Set the correct value by mapping with JRE location in C drive.
and just restart the splunkd.
I installed first jre & then jdk and updated the JAVA_HOME variable with the values along with splunkd restart. None of them worked.
Somehow, dbconnect is not loading the drivers. Also, I am getting "The modular input to start the Java Server failed to be registered to Splunk" error during health check in Monitoring Console.
It is due to JAVA_HOME env variable. Set the correct value by mapping with JRE location in C drive.
and just restart the splunkd.
I know this doesn't explain the error and why it is happening, but I got this solved by purging OpenJDK and replacing it with Oracle's JDK8.
https://askubuntu.com/questions/84483/how-to-completely-uninstall-java
Then you just install the JDK:
sudo add-apt-repository ppa:webupd8team/java -y &&
sudo apt-get update &&
sudo apt-get install oracle-java8-installer &&
java -version
You can also set the JAVA_HOME (check the correct path for you):
#cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
Hi @teddyidc1101,
I've passed for the same problem and I resolved this issue enabling the port (9998 or any that you want) in the firewall in my CentOS 7.
firewall-cmd --zone=public --add-port=9998/tcp --permanent
I hope help you.
[ ]s
Rafael Martins
Figured it out, the default 3.02 app install points DB Connect to a JRE Path it should be pointed to the JDK Path !
You need to specify the JDK Install path rather than keeping the default string value that points to JRE Path
Configuration / Settings / General under JRE Installation path remove what's there and add the path for JDK instead, then restart the SPLUNKD service
what if I installed just JRE and not JDK ?
For the noob like me. Configuration / Settings / General is accessed by launching the Splunk DB Connect application. Took a few minutes to figure this out.
I just installed 7.1.6, it found it automagically. OH, be careful. This specific version did not accept AWS Corretto. Had to use openjdk.
You need to specify the JDK Install path rather than keeping the default string value that points to JRE Path
Configuration / Settings / General under JRE Installation path remove what's there and add the path for JDK instead, then restart the SPLUNKD service
FYI JRE is the standard Java Runtime Envieonment. JDK is for development and not standard for running java applets. Glad it is working now for you!
Thanks yep I know this already 🙂
Make sure java is installed, that was my issue.
Im also getting this:
DBX Server is not available, please make sure it is started and listening on 9998 port or consult documentation for details.
I have the same issue, and I cannot find this general setting anywhere
Sorry for the delayed response...thank all for the help!
Its working now 🙂