Splunk AppDynamics

Analytics API showing error in postman

PepsiCo_TCSPEPA
Explorer

Hi,

I am trying to create a schema in Analytics using postman. But i am getting the below error.

Error: 

 "Error provisioning account on any cluster"
 
I am following the steps as per the Docs :
 
POST http://analytics.api.example.com/events/schema/{schemaName} HTTP/1.1
X-Events-API-AccountName:<global_account_name>
X-Events-API-Key:<api_key>
Content-Type: application/vnd.appd.events+json;v=2
Accept: application/vnd.appd.events+json;v=2
{
   "schema" : {
      "account": "integer",
      "amount": "float",
      "product": "string"
   }
}

And we are using the Analytics API URL as below: as our controller is from North America region.

https://analytics.api.appdynamics.com 
Labels (1)
0 Karma
1 Solution

Morelz
Motivator

Hi Vijay

We have only ever observed that error when you try and post to the wrong analytics endpoint

Here is a sample CURL request to create a schema(Please use Linux to run curl or adapt for windows curl),  you can use to test as well to see if you get the same error, It might be some small issue with the way you are posting it, I can't see any problem off hand from your POST Request

I just used the below to create a schema in Frankfurt Region

curl -X POST "https://<analytics url>/events/schema/TEST" -H "X-Events-API-AccountName:xxxxxxxxxxx" -H "X-Events-API-Key:xxxxxxxxxxx" -H "Content-type: application/vnd.appd.events+json;v=2" -d '{"schema" : { "AppName": "string", "TimerName": "string", "RequestType": "string", "RequestStatus": "string", "RequestID": "string", "Duration": "integer", "StartDateTime": "date", "EndDateTime": "date" } }'

Let me know the results

View solution in original post

0 Karma

iamryan
Community Manager
Community Manager

Hi @PepsiCo.TCSPEPAppD,

Did the above response from @Mario.Morelli help solve the issue or was it something you/your team did?

It's best to mark the actually reply that was the solution the solution. It seems like it might have been Marios last reply that helped. 

0 Karma

Morelz
Motivator

Hi There

The error you are getting is indicating that your controller is not in the Americas region. Please contact AppD support and let them clarify.

A quick way to check is to use the EMEA Frankfurt,London etc. analytics endpoints and check if the creation happens when you post to them:)

Ciao

PepsiCo_TCSPEPA
Explorer

Hi Ciao,

I have tried to post with the frankfurt and apac analytics url. But we still see the same issue in creating the schema.

Regards,
Vijay.

0 Karma

Morelz
Motivator

Hi Vijay

We have only ever observed that error when you try and post to the wrong analytics endpoint

Here is a sample CURL request to create a schema(Please use Linux to run curl or adapt for windows curl),  you can use to test as well to see if you get the same error, It might be some small issue with the way you are posting it, I can't see any problem off hand from your POST Request

I just used the below to create a schema in Frankfurt Region

curl -X POST "https://<analytics url>/events/schema/TEST" -H "X-Events-API-AccountName:xxxxxxxxxxx" -H "X-Events-API-Key:xxxxxxxxxxx" -H "Content-type: application/vnd.appd.events+json;v=2" -d '{"schema" : { "AppName": "string", "TimerName": "string", "RequestType": "string", "RequestStatus": "string", "RequestID": "string", "Duration": "integer", "StartDateTime": "date", "EndDateTime": "date" } }'

Let me know the results

0 Karma

PepsiCo_TCSPEPA
Explorer

Hi Ciao,

Greetings!
We have successfully created the event schema in Analytics. 

Thanks,
Ciao.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...