Splunk Search

RESTapi error while using dbx query any idea how to fix this?

rreddy012c
New Member

curl -k -u rvanteru https://splunkang.brock.com:59447/servicesNS/rvanteru/splunk_app_db_connect/search/jobs/export --data-urlencode search='| dbxquery query=\"SELECT TOP 10 asof_date FROM perfdb.dbo_stat\" connection=\"Splunk_BFWD1\"'
Enter host password for user 'rvanteru':

Configuration initialization for /opt/splunk/etc took 192ms when dispatching a search (search ID: 1537295313.115513_FA99073F-7552-406E-ABE0-50BEE73D849C)
The 'dbxquery' command is implemented as an external script and may cause the search to be significantly slower.
search context: user="rvanteru", app="splunk_app_db_connect", bs-pathname="/opt/splunk/etc"
com.splunk.dbx.exception.NotFoundException: Can not find object "Splunk_BFMEWD1" of type connection.

Tags (1)
0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @rreddy012c

Thanks for posting. Could you give us some more context for your query? You have a much better chance of getting your question answered if you provide more information about your issue. Plus, it will help guide future community users who are facing a similar problem.

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...