All Apps and Add-ons

Splunk DB Connect 2: Is there a known search performance issue with running dbxquery?

hmozaffari
Path Finder

Hi

Have you noticed any search performance issue when running dbxquery query? When I run a simple DB query like this

| dbxquery query="SELECT%201%20FROM%20DUAL" connection="AAA"

It takes 25 seconds to return the result. It is pointing to Oracle database and when I use any other client and run the same query it takes less than a second.
When I check the "Health" page and transaction, the DURATION is reported as 0.1 second which looks correct and the real time spent on database. But still it takes 25 seconds to get the query result.

Even enter a query with wrong SQL syntax and it takes 25 seconds to return the error:

| dbxquery query="YYYYYY" connection="AAA"

Thanks

hmozaffari
Path Finder

Thanks! Actually McAffee is running on my machine. I monitored the resources and couldn't find any bottleneck. Overall I have no performance issue with none-DB queries.

I'm not a Python expert but added some logs in dpquery.py and noticed the majority of time is spent by these two methods calls:
1- Getting a connection: self.db, self.db_health = self.get_connection(db)
2- The decorator: @health.Logger("dbquery:execute_query", health.DB)

0 Karma
Get Updates on the Splunk Community!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...