All Apps and Add-ons

Migrate dbquery to dbxquery

rahul2gupta
Path Finder

Hi @gcusello ,

Recently I faced one issue that my old query use to work but now it no longer working.

Old Query:

|dbquery wmsewprd "select * from sys_code_type where rec_type='C'"

What we are witnessing now is that the above query is working only when we are explicitly using the schema name(wmsew) along with the table name(sys_code_type) as below.

New Query:

|dbquery wmsewprd "select * from wmsew.sys_code_type where rec_type='C'"

So I contacted Splunk support and they advised me to use dbxquery instead of dbquery so in-order to do that what  asked me to migrate the  search that uses the "dbquery" command to use "dbxquery" instead.

So can you please guide me how to migrate from dbquery to dbxquery.

Regards,

Rahul

 

Labels (3)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @rahul2gupta,

I'm not an expert on DB-Connect, but you could see the following answer:

https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-convert-dbquery-search-to-dbxquery-searc... 

and see this documentation:

https://docs.splunk.com/Documentation/DBX/3.3.1/DeployDBX/Commands

Ciao.

Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...