Splunk AppDynamics

(52) Empty reply from server when i am doing rest call

CommunityUser
Splunk Employee
Splunk Employee

Getting empty reply from server when i am doing rest call using curl command:

Command : curl  --user <user>@<account >:password "http://<controller url>/controller/rest/applications/<app-name>/metrics"

please provide the solution for this problem. I am using trial version. 

following is the output:


* Trying [Redacted for sercurity reasons by ^ @Ryan.Paredez , AppD Community Manager]...
* Connected to cloud2019092621461.saas.appdynamics.com ([Redacted for sercurity reasons by ^ @Ryan.Paredez , AppD Community Manager]) port 443 (#0)
* Server auth using Basic with user 'govind.kumar@cloud2019092621461'
> GET /controller/rest/applications/Java-App/metrics HTTP/1.1
> Host: cloud2019092621461.saas.appdynamics.com:443
> Authorization: Basic [Redacted for sercurity reasons by ^ @Ryan.Paredez , AppD Community Manager]
> User-Agent: curl/7.47.0
> Accept: */*
>
* Empty reply from server
* Connection #0 to host cloud201909262146143.saas.appdynamics.com left intact

Labels (3)
0 Karma
1 Solution

Mark_Byrne
Path Finder

curl --user <user>@<account >:password "https://<controller url>/controller/rest/applications/<app-name>/metrics"

View solution in original post

Mark_Byrne
Path Finder

Hiya,

Try using https instead of http in your URL for the controller.

Mark

swastik_nayak
Engager

What will be curl command ?

0 Karma

Mark_Byrne
Path Finder

curl --user <user>@<account >:password "https://<controller url>/controller/rest/applications/<app-name>/metrics"

CommunityUser
Splunk Employee
Splunk Employee

It's working now.
Thnaks to AppDynamics & Mark.Byrne.

Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...