All Apps and Add-ons

Why are the DB Connect queries executed twice?

mvanberg
Explorer

I'm using DB Connect to update tables in a database, as well as pull them, but every time I execute the queries they happen twice.

Example:

When adding a row to a ledgers table, say a $10 deposit, Splunk will run the query twice and I get $20 worth of deposits.

I think this is a bug, but I'm trying to see if anyone else has seen this problem and if so if they have a fix.

Notes:
- I'm using the tested and approved Postgres drivers
- Splunk 7.0.2
- DB Connect 3.1.2
- This happens in a dashboard, ad-hoc search, and sql explorer

Log example from splunk_app_db_connect_audit_command:

2018-03-15 22:40:17.599 PORT@HOST [main] INFO com.splunk.dbx.connector.logger.AuditLogger - operation=dbxquery connection_name=CONNECTION stanza_name= state=success sql='SQLQUERY1'
2018-03-15 22:40:18.758 PORT@HOST [main] INFO com.splunk.dbx.connector.logger.AuditLogger - operation=dbxquery connection_name=CONNECTION stanza_name= state=success sql='SQLQUERY1'

(Data is obfuscated for security purposes)

vincegee777
Engager

I got the same problem too, did anyone get a solution to this?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...