<?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 Re: DBX MSSQL Cannot Connect in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115139#M24099</link>
    <description>&lt;P&gt;Hi, been struggling to get DBX to connect to an MSSQL DB. I did install a JDBC tool directly on the splunk server just to verify my credentials or JDBC was an issue, all worked out fine.&lt;/P&gt;

&lt;P&gt;I have debug running, here is a portion of the DBX Log:&lt;/P&gt;

&lt;P&gt;2015-02-17 12:29:55.780 dbx4915:DEBUG:Database - Connecting to database database&lt;BR /&gt;
2015-02-17 12:29:55.780 dbx4915:DEBUG:MicrosoftSqlServer - Using MSSQL windows authentication with domain=FOO username=myusername&lt;BR /&gt;
2015-02-17 12:29:55.780 dbx4915:DEBUG:MicrosoftSqlServer - Connecting to database=MicrosoftSqlServer using JDBC url=jdbc:jtds:sqlserver://myserver:1443/master;domain=NAM;ssl=request;appName=Splunk;progName=Splunk&lt;BR /&gt;
2015-02-17 12:29:55.888 dbx4915:INFO:BridgeSession - Caught Exit exception: JavaBridgeExitException{status=1}&lt;/P&gt;

&lt;P&gt;Here is a portion of the jbridge_cleint.log:&lt;/P&gt;

&lt;P&gt;2015-02-17 12:29:08,821 ERROR spp.dbx.javabridge Error while executing bridge command: Connection to Java bridge server 127.0.0.1:17865 failed: [Errno 61] Connection refused&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/Applications/Splunk/etc/apps/dbx/bin/spp/java/bridge.py", line 84, in execute&lt;BR /&gt;
    "Connection to Java bridge server %s:%s failed: %s" % (self.bridgeHost, self.bridgePort, e))&lt;BR /&gt;
JavaBridgeError: Connection to Java bridge server 127.0.0.1:17865 failed: [Errno 61] Connection refused&lt;/P&gt;

&lt;P&gt;2015-02-17 12:29:27,776 DEBUG spp.dbx.javabridge Executing java bridge command com.splunk.bridge.stats.SystemStatus [()]&lt;BR /&gt;
2015-02-17 12:29:55,775 DEBUG spp.dbx.javabridge Executing java bridge command com.splunk.dbx.sql.validate.DatabaseValidator [('isolation_level=DATABASE_SETTING', 'database=master', 'readonly=0', 'type=mssql', 'host=myserver', 'arguments=domain=FOO;', 'validate=1', 'port=1443', 'password=mypw', 'username=myuserid')]&lt;/P&gt;

&lt;P&gt;It appears that its not even hitting the DB and the javabridge is refusing the connection. I played with the JDBC connections and nothing made a difference. &lt;/P&gt;

&lt;P&gt;Javabridge is up and running, below is from the status page. &lt;BR /&gt;
Uptime: 0 days 00:57:08&lt;BR /&gt;
Memory: TOTAL=61.50 MB MAX=228.00 MB FREE=38.52 MB (37% used)&lt;/P&gt;

&lt;P&gt;App: dbx version 1.1.6 build 244830 &lt;BR /&gt;
Splunk environment: SplunkEnvironment{SPLUNK_HOME=/Applications/Splunk,SPLUNK_DB=/Applications/Splunk/var/lib/splunk}&lt;BR /&gt;
Splunk version: 6.2.1 build 245427&lt;BR /&gt;
Java: version: 1.8.0_31 vendor: Oracle Corporation JAVA_HOME: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home&lt;BR /&gt;
OS: name: Mac OS X version: 10.10.1 arch: x86_64 &lt;/P&gt;

&lt;P&gt;Status for Splunkd{host='&lt;STRONG&gt;&lt;EM&gt;9', sessionKey='&lt;/EM&gt;&lt;/STRONG&gt;**********************&lt;STRONG&gt;&lt;EM&gt;HL_A'} (com.splunk.rest.Splunkd)&lt;BR /&gt;
Splunkd REST connection with sessionKey=&lt;/EM&gt;&lt;/STRONG&gt;******************HL_A (VALID) requests=20&lt;/P&gt;

&lt;P&gt;Status for Pooled database factory (com.splunk.dbx.sql.factory.PooledConnectionFactory)&lt;BR /&gt;
Loaded databases:&lt;BR /&gt;
    Database{name='eErrors', databaseType=com.splunk.dbx.sql.type.impl.MicrosoftSqlServer@3943a2be, host='mydb', port=1443, username='myusername', database='master'}&lt;BR /&gt;
    Pool: GenericKeyedObjectPool{active=0, idle=0, maxActive=15, maxIdle=5}&lt;/P&gt;

&lt;P&gt;Status for DatabaseMonitoringManager (com.splunk.dbx.monitor.DatabaseMonitoringManager)&lt;BR /&gt;
Inputs:&lt;/P&gt;

&lt;P&gt;Status for JavaBridgeServer (com.splunk.bridge.JavaBridgeServer)&lt;BR /&gt;
    listening on 127.0.0.1:17865 running=true executedSessions=2&lt;/P&gt;

&lt;P&gt;Status for ProcessWatcher (com.splunk.bridge.JavaBridgeServer$ProcessWatcher)&lt;BR /&gt;
    Watching pid file: /Applications/Splunk/var/run/splunk/dbx/dbx.lock with pid=74544 failures=0&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I'm stumped. Any ideas?&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:58:19 GMT</pubDate>
    <dc:creator>chrisboy68</dc:creator>
    <dc:date>2020-09-28T18:58:19Z</dc:date>
    <item>
      <title>DBX MSSQL Cannot Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115138#M24098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have been struggling trying to get DBX connected to an MSSQL DB. There is no named instance:&lt;/P&gt;

&lt;P&gt;In database.conf, &lt;BR /&gt;
database = SERVERNAME/DB&lt;/P&gt;

&lt;P&gt;If I use the host name for the default instance name, I get:&lt;BR /&gt;
&lt;STRONG&gt;Error while executing command: Error getting database connection: Server SERVERNAME has no instance named SERVERNAM.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So this tells me a connection is trying to be made to the DB. So, then I change the conf, just to list the DB.&lt;BR /&gt;
IE: &lt;BR /&gt;
database = DB&lt;/P&gt;

&lt;P&gt;When I do this, it just hangs and timesout.&lt;/P&gt;

&lt;P&gt;Anyone know the correct syntax to connect to a MS DB w/out a Named Instance? I have an ODBC Data Source working fine on this DB, so I know my credentials are fine and the Server Name.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 16:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115138#M24098</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-01-29T16:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: DBX MSSQL Cannot Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115139#M24099</link>
      <description>&lt;P&gt;Hi, been struggling to get DBX to connect to an MSSQL DB. I did install a JDBC tool directly on the splunk server just to verify my credentials or JDBC was an issue, all worked out fine.&lt;/P&gt;

&lt;P&gt;I have debug running, here is a portion of the DBX Log:&lt;/P&gt;

&lt;P&gt;2015-02-17 12:29:55.780 dbx4915:DEBUG:Database - Connecting to database database&lt;BR /&gt;
2015-02-17 12:29:55.780 dbx4915:DEBUG:MicrosoftSqlServer - Using MSSQL windows authentication with domain=FOO username=myusername&lt;BR /&gt;
2015-02-17 12:29:55.780 dbx4915:DEBUG:MicrosoftSqlServer - Connecting to database=MicrosoftSqlServer using JDBC url=jdbc:jtds:sqlserver://myserver:1443/master;domain=NAM;ssl=request;appName=Splunk;progName=Splunk&lt;BR /&gt;
2015-02-17 12:29:55.888 dbx4915:INFO:BridgeSession - Caught Exit exception: JavaBridgeExitException{status=1}&lt;/P&gt;

&lt;P&gt;Here is a portion of the jbridge_cleint.log:&lt;/P&gt;

&lt;P&gt;2015-02-17 12:29:08,821 ERROR spp.dbx.javabridge Error while executing bridge command: Connection to Java bridge server 127.0.0.1:17865 failed: [Errno 61] Connection refused&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/Applications/Splunk/etc/apps/dbx/bin/spp/java/bridge.py", line 84, in execute&lt;BR /&gt;
    "Connection to Java bridge server %s:%s failed: %s" % (self.bridgeHost, self.bridgePort, e))&lt;BR /&gt;
JavaBridgeError: Connection to Java bridge server 127.0.0.1:17865 failed: [Errno 61] Connection refused&lt;/P&gt;

&lt;P&gt;2015-02-17 12:29:27,776 DEBUG spp.dbx.javabridge Executing java bridge command com.splunk.bridge.stats.SystemStatus [()]&lt;BR /&gt;
2015-02-17 12:29:55,775 DEBUG spp.dbx.javabridge Executing java bridge command com.splunk.dbx.sql.validate.DatabaseValidator [('isolation_level=DATABASE_SETTING', 'database=master', 'readonly=0', 'type=mssql', 'host=myserver', 'arguments=domain=FOO;', 'validate=1', 'port=1443', 'password=mypw', 'username=myuserid')]&lt;/P&gt;

&lt;P&gt;It appears that its not even hitting the DB and the javabridge is refusing the connection. I played with the JDBC connections and nothing made a difference. &lt;/P&gt;

&lt;P&gt;Javabridge is up and running, below is from the status page. &lt;BR /&gt;
Uptime: 0 days 00:57:08&lt;BR /&gt;
Memory: TOTAL=61.50 MB MAX=228.00 MB FREE=38.52 MB (37% used)&lt;/P&gt;

&lt;P&gt;App: dbx version 1.1.6 build 244830 &lt;BR /&gt;
Splunk environment: SplunkEnvironment{SPLUNK_HOME=/Applications/Splunk,SPLUNK_DB=/Applications/Splunk/var/lib/splunk}&lt;BR /&gt;
Splunk version: 6.2.1 build 245427&lt;BR /&gt;
Java: version: 1.8.0_31 vendor: Oracle Corporation JAVA_HOME: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home&lt;BR /&gt;
OS: name: Mac OS X version: 10.10.1 arch: x86_64 &lt;/P&gt;

&lt;P&gt;Status for Splunkd{host='&lt;STRONG&gt;&lt;EM&gt;9', sessionKey='&lt;/EM&gt;&lt;/STRONG&gt;**********************&lt;STRONG&gt;&lt;EM&gt;HL_A'} (com.splunk.rest.Splunkd)&lt;BR /&gt;
Splunkd REST connection with sessionKey=&lt;/EM&gt;&lt;/STRONG&gt;******************HL_A (VALID) requests=20&lt;/P&gt;

&lt;P&gt;Status for Pooled database factory (com.splunk.dbx.sql.factory.PooledConnectionFactory)&lt;BR /&gt;
Loaded databases:&lt;BR /&gt;
    Database{name='eErrors', databaseType=com.splunk.dbx.sql.type.impl.MicrosoftSqlServer@3943a2be, host='mydb', port=1443, username='myusername', database='master'}&lt;BR /&gt;
    Pool: GenericKeyedObjectPool{active=0, idle=0, maxActive=15, maxIdle=5}&lt;/P&gt;

&lt;P&gt;Status for DatabaseMonitoringManager (com.splunk.dbx.monitor.DatabaseMonitoringManager)&lt;BR /&gt;
Inputs:&lt;/P&gt;

&lt;P&gt;Status for JavaBridgeServer (com.splunk.bridge.JavaBridgeServer)&lt;BR /&gt;
    listening on 127.0.0.1:17865 running=true executedSessions=2&lt;/P&gt;

&lt;P&gt;Status for ProcessWatcher (com.splunk.bridge.JavaBridgeServer$ProcessWatcher)&lt;BR /&gt;
    Watching pid file: /Applications/Splunk/var/run/splunk/dbx/dbx.lock with pid=74544 failures=0&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I'm stumped. Any ideas?&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115139#M24099</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2020-09-28T18:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: DBX MSSQL Cannot Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115140#M24100</link>
      <description>&lt;P&gt;Bump&lt;/P&gt;

&lt;P&gt;Any ideas? Nothing is working with this client. As I stated other JDBC clients work fine.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115140#M24100</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-02-26T15:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: DBX MSSQL Cannot Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115141#M24101</link>
      <description>&lt;P&gt;One of the line in the message log reads "Connection refused.". Check:&lt;BR /&gt;
 1.  MSSQL is set to use SQL Authentication.&lt;BR /&gt;
 2. JAVA_HOME is auto-detected by the app while setting it up after installation.&lt;BR /&gt;
 3. If using DBX 1.1.7, use jre7u or jre8u45 for DBX 2.0.x&lt;/P&gt;

&lt;P&gt;Pls share what OS/SQLver/JREv are you have in your setup.&lt;/P&gt;

&lt;P&gt;Mitesh.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2015 20:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DBX-MSSQL-Cannot-Connect/m-p/115141#M24101</guid>
      <dc:creator>miteshvohra</dc:creator>
      <dc:date>2015-06-27T20:22:12Z</dc:date>
    </item>
  </channel>
</rss>

