Splunk AppDynamics

How to use the Analytics REST API for ADQL query to fetch EUM data

Surendhiran_Mut
New Member

i'm using the below analytics query to fetch EUM data on daily basis and uploading to other data source in AWS.

SELECT eventTimestamp, pagetype, pageexperience, pageurl, metrics.`End User Response Time (ms)` AS EURT_ms FROM browser_records

I looking for a REST API option to fetch data from above query. i have gone through couple of post and tried the curl command using global account name and api key but getting error

curl -X POST "http://analytics.api.appdynamics.com/events/query" -H"X-Events-API-AccountName:<<>>" -H"X-Events-API-Key:<<>>" -H"Content-type: application/vnd.appd.events+json;v=2" -d 'SELECT * FROM browser_records LIMIT 5'
{"statusCode":500,"code":"Unknown","message":"Unknown server error.","developerMessage":null,"logCorrelationId":"5df56f18-710e-4d4c-9227-c29c78b34ba0"}curl: (6) Could not resolve host: *
curl: (6) Could not resolve host: FROM
curl: (6) Could not resolve host: browser_records
curl: (6) Could not resolve host: LIMIT
curl: (6) Could not resolve host: 5'

Labels (1)
Tags (3)
0 Karma

iamryan
Community Manager
Community Manager

Hi @Surendhiran.Muthusamy,

Have you had a chance to explore our AppD API Documentation

0 Karma
Get Updates on the Splunk Community!

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

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...