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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...