Splunk AppDynamics

Thread dump via API?

JohnGregg
Path Finder

I'm using the v20.5 java agent.

Is there a way to trigger and download a thread dump via the API?  I don't see one.

In the UI, we can do something like this:

  1. Go to node
  2. Go to agent tab
  3. Request agent log files
  4. Collect x thread dumps y millis apart
  5. Download resulting files

I would like to automate that.

thanks

Labels (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi @John.Gregg,

I did some searching and found this. It seems API can be used to initiate a thread dump, but not download.

https://docs.appdynamics.com/21.5/en/extend-appdynamics/appdynamics-apis/alert-and-respond-api/actio...

Example
Request
Response
This example creates an action of the type Thread Dump. See Download Examples.

{
"actionType": "THREAD_DUMP",
"name": "Thread Dump Action",
"numberOfThreadDumps": 2,
"intervalInMs": 500,
"approvalBeforeExecution": {
"requireApproval": true,
"approverEmail": "email@website.com"
}
}

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...