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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...