Splunk AppDynamics

Analytics API curl command with postman

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I am trying to send my first call to appD and get a response via the API but I can't make the connection. Can someone spot the problem with my code? I am using the Postman api client.

Thanks for your help,

Tom

curl -X POST \
http://analytics.api.appdynamics.com:9080/events/query \
-H 'Accept: application/vnd.appd.events+json;v=2' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Postman-Token: c64eb226-a0f8-472c-b641-05e9a406ff87' \
-H 'X-Events-API-AccountName: *********-70cf-4c7e-****-20de6c0f4510' \
-H 'X-Events-API-Key: ********-ff29-444b-****-0f0ec02a985b' \
-d 'query=SELECT%20*%20FROM%20brow*******rds'

Labels (1)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Hi,

It was. Removing the port seemed to fix the issue!

Thanks 

Tom

View solution in original post

Mohammed_Rayan
Contributor

Hi Tom,

What's the response code you are seeing for the call

is it connection refused or unauthorised(401)

/Rayan

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

It was. Removing the port seemed to fix the issue!

Thanks 

Tom

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