<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Splunk DB Connect java_home stanza error in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-java-home-stanza-error/m-p/364350#M5938</link>
    <description>&lt;P&gt;Recently installed Splunk DB Connect and the path to the JRE has been entered into the WebUI.&lt;/P&gt;

&lt;P&gt;However on startup of the Heavy Forwarder it is installed on you get the following error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Checking conf files for problems...
Invalid key in stanza [java] in /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf, line 2: javaHome  (value:  /usr/java/latest/jre).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Upon running btool you see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ splunk btool check --debug
...
Checking: /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf
                Invalid key in stanza [java] in /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf, line 2: javaHome  (value:  /usr/java/latest/jre).
        Did you mean 'java_home'?
        Did you mean 'jvm_options'?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The contents of /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[java]
javaHome = /usr/java/latest/jre

[loglevel]
connector = INFO
dbinput = INFO
dboutput = INFO
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I now the issue is simple to correct because looking at the spec of &lt;A href="https://docs.splunk.com/Documentation/DBX/3.1.0/DeployDBX/settingsconfspec" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/3.1.0/DeployDBX/settingsconfspec&lt;/A&gt; shows it should be java_home not javaHome, but we never set javaHome the settings of DBConnect did.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/207088-screen-shot-2017-08-14-at-91719-am.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;We have no active support contract so can't even report this as an issue it appears.&lt;/P&gt;

&lt;P&gt;Was wondering if everyone is running into this issue?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; No environment variable for JAVA_HOME exists.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:19:17 GMT</pubDate>
    <dc:creator>cliffwakefield</dc:creator>
    <dc:date>2020-09-29T15:19:17Z</dc:date>
    <item>
      <title>Splunk DB Connect java_home stanza error</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-java-home-stanza-error/m-p/364350#M5938</link>
      <description>&lt;P&gt;Recently installed Splunk DB Connect and the path to the JRE has been entered into the WebUI.&lt;/P&gt;

&lt;P&gt;However on startup of the Heavy Forwarder it is installed on you get the following error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Checking conf files for problems...
Invalid key in stanza [java] in /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf, line 2: javaHome  (value:  /usr/java/latest/jre).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Upon running btool you see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ splunk btool check --debug
...
Checking: /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf
                Invalid key in stanza [java] in /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf, line 2: javaHome  (value:  /usr/java/latest/jre).
        Did you mean 'java_home'?
        Did you mean 'jvm_options'?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The contents of /opt/splunk/etc/apps/splunk_app_db_connect/local/dbx_settings.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[java]
javaHome = /usr/java/latest/jre

[loglevel]
connector = INFO
dbinput = INFO
dboutput = INFO
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I now the issue is simple to correct because looking at the spec of &lt;A href="https://docs.splunk.com/Documentation/DBX/3.1.0/DeployDBX/settingsconfspec" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/3.1.0/DeployDBX/settingsconfspec&lt;/A&gt; shows it should be java_home not javaHome, but we never set javaHome the settings of DBConnect did.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/207088-screen-shot-2017-08-14-at-91719-am.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;We have no active support contract so can't even report this as an issue it appears.&lt;/P&gt;

&lt;P&gt;Was wondering if everyone is running into this issue?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; No environment variable for JAVA_HOME exists.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-java-home-stanza-error/m-p/364350#M5938</guid>
      <dc:creator>cliffwakefield</dc:creator>
      <dc:date>2020-09-29T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect java_home stanza error</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-java-home-stanza-error/m-p/364351#M5939</link>
      <description>&lt;P&gt;Hi - The issue is that the spec file is incorrect. The config checker looks for any options that don't have a match in the spec file. &lt;/P&gt;

&lt;P&gt;If you change java_home to javaHome in etc/apps/splunk_app_db_connect/README/dbx_settings.conf.spec then "splunk cmd btool check" stops reporting the error. &lt;/P&gt;

&lt;P&gt;The DBconnect app itself sets and expects to find an option called javaHome.&lt;/P&gt;

&lt;P&gt;This issue has been corrected in the latest version of the app (3.1.3).&lt;/P&gt;

&lt;P&gt;cheers&lt;BR /&gt;
Justin.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-DB-Connect-java-home-stanza-error/m-p/364351#M5939</guid>
      <dc:creator>jfarmiloe</dc:creator>
      <dc:date>2020-09-29T21:39:22Z</dc:date>
    </item>
  </channel>
</rss>

