Splunk AppDynamics

Captured SQL Query text got truncated in DBAgent. How to increase the captured SQL text size?

Tiong_Koh
Explorer

We have a Microsoft SQL database SP with a few hundred lines. When we tried to analyze the content of this SP under the controller tab Databases|Queries||Query Details|Query, the query text got truncated. Is there a setting can increase the captured SQL text size?

The controller build is  24.6.3.  DBAgent version 23.6.0.0

Labels (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi @Tiong.Koh,

Have you had a chance to review the latest reply? If it answers your question, please click the "Accept as Solution" button, if not, reply back to keep the conversation going. 

0 Karma

MARTINA_MELIAN1
Path Finder

Hi @Tiong.Koh ,

I apologize for the delay in my response.

I reviewed this limitation and found that an idea request was previously submitted regarding this, but, it was rejected due to concern of system performance. Additionally, the 32,767 character limit was deemed sufficient for SQL analysis at the time.

Regarding the character limit, the current maximum is 32,767 characters, including white spaces.

If this limitation is critical to your business processes, I recommend reaching out to your account manager or sales reps with business justification so that they can discuss with our product manager.

 

Regards,

Martina

MARTINA_MELIAN1
Path Finder

Hi Tiong.Koh,

Thank you for posting to community.

Could you clarify how many characters are currently being captured and how many characters you'd need to be shown? This will help in understanding the scope.

From what I understand, the maximum character of query text shown is hardcoded to the maximum of 32,767 characters in database agent. We can’t change this setting, because, Increasing this limit might lead to higher memory consumption on the DB agent side and increased storage usage on the Controller side.

Regards,

Martina

Tiong_Koh
Explorer

It captured 265 lines with a total of 26,591 characters.  The original sp text size is 38,841. 

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

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 ...