cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The AppDynamics Community is Migrating this Friday, February 28th.


At 6pm PST, the AppDynamics Community will go into read-only mode and after migration is complete, you will be redirected to community.splunk.com.
Read more here


Anonymous
Not applicable

 Getting following error while querying analytics events data using Analytics Events API:

 

"statusCode": 415, 
"code": "Library.Exception", 
"message": "HTTP 415 Unsupported Media Type", 
"developerMessage": "javax.ws.rs.NotSupportedException: HTTP 415 Unsupported Media Type"
...

 

This can happen when the content type is not used or incorrectly specified,  rerun the API query with Content-type:

Content-type: application/vnd.appd.events+text;v=2

 

Example Query Request

POST http://<events_service_endpoint>:9080/events/query
X-Events-API-AccountName:<global_account_name>
X-Events-API-Key:<api_key>
Content-type: application/vnd.appd.events+text;v=2
Accept: application/vnd.appd.events+json;v=2

SELECT * FROM county WHERE size>=30 AND population>20000

Note: Also make sure to have the right API Key as per the following doc:
https://docs.appdynamics.com/display/PRO43/Managing+API+Keys

 

Reference: https://docs.appdynamics.com/display/PRO43/Analytics+Events+API#AnalyticsEventsAPI-QueryingEvents

 

Version history
Last update:
‎12-29-2017 01:49 AM
Updated by:
Ask the Experts Session: Hybrid Application Monitoring Deployment

Join us on Feb 26 to explore Splunk AppDynamics deployment strategies, SaaS models, agent rollout plans, and expert best practices.


Register Now

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here
Contributors