Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 05-30-2017 01:39 PM - edited on 10-12-2018 02:06 PM by Nina.Wolinsky
How can a user capture mobile crash stack traces automatically using an API?
Users may be gathering crash data from the mobile_crash_reports
table using ADQL, but there is no stack trace information in this table.
Stack trace data is stored within the AppDynamics system, and displayed in a web browser.
Example:
As of AppDynamics version 4.3, there is no API available to gather crash data from the mobile_crash_reports
table.
As a workaround, set the following variables and use curl to request the full crash report.
Note: The URLs may change in different controller versions because these are not public APIs. The following example is for AppDynamics version 4.2 and 4.3 Controllers.
Set these variables: USER= ACCOUNT= PASSWORD= CONTROLLER_URL= APPLICATION= # You can find this in the url when viewing an app. It will say "application=X" where X is an integer CRASH_ID= # This is the crashid field from analytics (not groupid) # Get a login cookie from the controller: curl -X GET \ -c /tmp/cookie \ --user "${USER}@${ACCOUNT}:${PASSWORD}" \ "http://${CONTROLLER_URL}/controller/auth?action=login" # Then request the full crash report: curl -X GET \ -b /tmp/cookie \ "https://${CONTROLLER_URL}/controller/restui/crashDetails/download/${APPLICATION}/${CRASH_ID}"
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form