All Apps and Add-ons

Splunk DB Connect: Error in 'dbxquery' command: External search command exited unexpectedly with non-zero error code 255

baigura
Explorer

Hello,

I have an odd problem with db_connect :

My connection is ok

alt text

I can see the database and the tables but when i try to query (basic select) i have an error

Error in 'dbxquery' command: External search command exited unexpectedly with non-zero error code 255

My query is simple | dbxquery query="SELECT * FROM sys.sys_config" connection="da" even select 1 from dual doesn't work

Database : MySQL 5.7
User : root privileges
Splunk 6.6.0
DB connect 3.1.1
Java 8

1 Solution

baigura
Explorer

I have downgraded DB connect (from 3.1.1 to 2.4.1) and now it works

View solution in original post

0 Karma

geonspapa
Explorer

In my case, JVM options was empty in the settings.
I click reset and save. it work.
OR write follow.

-Ddw.server.applicationConnectors[0].port=9998

VijaySrrie
Builder

May I know where to write the below line

-Ddw.server.applicationConnectors[0].port=9998
0 Karma

baigura
Explorer

I have downgraded DB connect (from 3.1.1 to 2.4.1) and now it works

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...