Getting Data In

DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?



after installing the DB Connect 1.1.7, the Java Bridge Server is not running.

The Error code in the jbridge.log is:

2015-04-23 11:31:29,707 ERROR Java process returned error code 1! Error: Initializing Splunk context... Environment: SplunkEnvironment{SPLUNK_HOME=C:\Program Files\Splunk,SPLUNK_DB=C:\Program Files\Splunk\var\lib\splunk} Configuring Log4j... Exception in thread "main" com.splunk.env.SplunkEnvironmentException: **Unable to create directory C:\Program Files\Splunk\var\lib\splunk\persistentstorage\dbx\global**  at com.splunk.env.SplunkEnvironment.getSubDirectory(  at com.splunk.env.SplunkEnvironment.getPersistentStorageDirectory(   at com.splunk.persistence.PersistentValueStoreFactory.createStore(  at com.splunk.persistence.PersistentValueStoreFactory.createGlobalStore(    at com.splunk.env.SplunkContext.initialize(  at com.splunk.bridge.JavaBridgeServer.main( 

My Java-HomePath: C:\Program Files\Java\jre7
My System is Windows 7 Professional 64bit

I didn´t find a Solution of this problem in Splunk Answers and Splunk Docs that equals.

Has someone an Idea?

0 Karma
1 Solution

Splunk Employee
Splunk Employee

Your permissions are messed up. Splunk can't create files in its own directory. Check how the services are installed and running.

View solution in original post

 Hi try this:

After you install DB Connect and restart Splunk Enterprise, you must complete
the following setup tasks:
Enable splunkd SSL
To run DB Connect, you must enable SSL for splunkd.
1. Go to $SPLUNK_HOME/etc/system/local/server.conf.
2. In the [sslConfig] stanza, set enableSplunkdSSL to true, as shown:
enableSplunkdSSL = true
**Note**: splunkd is enabled by default.

**Complete the app setup from the UI**
1. Go to Apps > Splunk DB Connect.
The Splunk DB Connect Setup page appears.

2. Enter your JAVA_HOME path. This is where your JRE (Java Runtime Environment) resides. For example:

3. Click Save.
This enables the Java Bridge Server.
Note: To verify that the Java Bridge Server is running, make sure that the  scripted input is enabled. 

*Command Line Setup*
You can setup DB Connect manually from the command line.

1. Create $SPLUNK_HOME/etc/apps/dbx/local/app.conf
is_configured = 1

2. Create $SPLUNK_HOME/etc/apps/dbx/local/java.conf
home = <JAVA_HOME path>
This is the path to your ( JRE) Java Runtime Environment. For example:

3. Enable the Java Bridge Server (scripted input) in $SPLUNK_HOME/etc/apps/dbx/local/inputs.conf
disabled = 0

4. Create the sink for database inputs in $SPLUNK_HOME/etc/apps/dbx/local/inputs.conf
crcSalt = <SOURCE>
disabled = 0
move_policy = sinkhole
sourcetype = dbmon:spool

5. Restart Splunk

If you wish to connect a MySQL, Oracle, DB2, or Informix database to Splunk via Splunk DB Connect, you must download and install the correct JDBC drivers as shown below.

Step 1: Download driver
Download the appropriate JDBC driver for your database, as follows:

Download the MySQL Connector/J driver, version 5.1.24 or later (mysql-connector-java-*-bin.jar).

For Unix, Linux, and MacOS X, select the Platform Independent driver option, as follows:
Download and uncompress either ZIP or TAR archive files.
The uncompressed archive contains the JDBC driver (.jar).
Copy the mysql-connector-java-version-bin.jar file to the
$SPLUNK_HOME/etc/apps/dbx/bin/lib directory.

For Windows, select the Microsoft Windows driver option, as follows:
Download and run the the MySQL Connector/J driver for Windows MSI installer file. This installs the JDBC driver (.jar) in C:\Program Files\MySQL\MySQL Connector.

Copy the mysql-connector-java-version-bin.jar file to the   %SPLUNK_HOME%\etc\apps\dbx\bin\lib directory.

Download the Oracle JDBC driver (ojdbc6.jar).

Go to the DB2 JDBC Driver Versions download site. Login (register, if needed). As part of the login, check the license agreement checkbox, then click the I confirm button.

Check the download checkbox for: IBM Data Server Driver for JDBC and SQLJ (JCC Driver) (9 MB)
Click the Download now button, saving the file to a temporary directory.

¨ Unzip the downloaded file. Copy or move the db2jcc4.jar file to the $SPLUNK_HOME$/etc/apps/dbx/bin/lib directory.

**Note**: Only move the db2jcc4.jar file to the .../dbx/bin/lib directory, not, to avoid conflicts.

¨ Download the Informix JDBC driver (ifxjdbc.jar).

**Step 2: Install driver**
After you have downloaded the correct driver for your database and platform,
install the driver as follows:

1. Copy the driver to the $SPLUNK_HOME/etc/apps/dbx/bin/lib directory.

2. Restart Splunk.
0 Karma


My splunk instance is configured as described in your manual. I have checked the permissions of the Splunk-directory and changed them, like described from "jcotes_splunk". so it fuctioned,yet.

thanks anyway!

0 Karma

Splunk Employee
Splunk Employee

Your permissions are messed up. Splunk can't create files in its own directory. Check how the services are installed and running.


I have changed the permissions in the splunk directory, so it works now. Thanks.

0 Karma


Thanks Jcoates.. it fixed my issue

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...