All Apps and Add-ons

Java_path environment variable in dbx_settings.conf

apiprek2
Explorer

Hi, does anyone know if it's possible to replace the hard coded javaHome key in db_connect's dbx_settings.conf file with the java_home environment variable in Windows?   I have an auto patching set-up in a Windows Splunk heavy forwarder, and every time Java gets upgraded, it crashes the Splunk service.   For example, I'd like to replace this:

javaHome = C:\Program Files\java\jdk-17.0.11.9-hotspot

With this:

javaHome=%java_home%

 

The above syntax doesn't work, although I'm not sure if it's a syntax or functionality issue.

Thanks!

Labels (2)
0 Karma

apiprek2
Explorer

I tried adding it via the gui, but I get the error "JAVA_HOME path does not exist".  I'm curious if Splunk is it's a syntax issue - I'm inputting %JAVA_HOME% as the path.

I also found that if I leave the field blank, Splunk auto-populates the value.  I'll see if it auto-populates it with a new path at next upgrade.

 

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@apiprek2- Try updating JavaHome variable from DB Connect UI with that variable you have on Windows.

And see if your Splunk DB connect works properly or not.

 

On the side note, Ideally root Splunk service should not have any impact on change or Java, Java variable, or DB connect.

 

I hope this helps!!!

0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

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

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...