Splunk AppDynamics

Custom Event data publishing using XML

CommunityUser
Splunk Employee
Splunk Employee

Is it possible to use XML instead of JSON for the custom event data publish.

If it possible could you post an example similar to this.

Thanks

curl -X POST "<events_service_endpoint>:9080/events/publish/myProducts" -H"X-Events-API-AccountName:customer1_1234-567a-bccc-123" -H"X-Events-API-Key:a123b456-c789-1d23-e456-nnn" -H"Content-type: application/vnd.appd.events+json;v=2" -d '[{"id": "5653b879ab33a","productBrand": "ACME","userRating": 3,"price": 2006.41,"productName": "Watch","description": "new watch"},{"id": "5653b879700","productBrand": "Widget","userRating": 1,"price": 3800.13,"productName": "Watch","description": "2015 watch"}]'

Labels (1)
0 Karma

Gaurav_Soni
Contributor

Hi Atul,

Unfortunately, The Analytics events API only works with JSON payload.

Regards,

Gaurav Soni

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

OK, Thanks for confirming that XML cannot be used by the REST API for Analytics.

Atul

Gaurav_Soni
Contributor

URW. 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...