All Apps and Add-ons

dbxquery - is the massage from the db interface available?

damucka
Builder

Hello,

We work quite much with the SQL statements executed using dbxquery. It would be very helpful for us to have the response of the database interface. Here I mean not only the result itself (dataset returned), but also the error and status messages, like the number of rows affetced / updated / inserted, etc.

Example:
After execution of the delete statement on the database, we get the following message:

Statement 'delete from ZKPID_HHIGHMEM_STATEMENTS' 
successfully executed in 6 ms 575 µs  (server processing time: 1 ms 587 µs) - Rows Affected: 595  

It would be very good to have it under some variable in SPL.
Is it possible?

Another example:
Let us say I have the following SQL statement: insert into tab1 (select * from tab2);
I would like to know:
- was the insert successful?
- how many rows have been inserted?

Please advice.

Kind Regards,
Kamil

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!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...