Good Morning,
I am using the http_poller logstash input filter to connect to the AppDynamics OAUTH API that I will then use to pass to the http filter plugin to retrieve AppDynamics REST API metric data to insert into Elasticsearch.
My logstash http_poller configuration is:
``` input { http_poller { urls => { AppDynamics => { method => post url => "https://*appdynamics-test-account*/controller/api/oauth/access_token" headers => { "Accept" => "application/json" "Content-Type" => "application/vnd.appd.cntrl+protobuf;v=1" "Authorizations" => "*AppDynamics bearer token*" "grant_type" => "client_credentials" "client_id" => "Stage-CurlTest" "client_secret" => "*AppDynamics Client Secret*" } } } request_timeout => 60 schedule => { every => "1h"} codec => "json" metadata_target => "appd-token" type => "AppDynamics" } } } ```
I am getting the following error response when the poller tries to connect to AppDynamics
``` { "type": "AppDynamics", "@timestamp": "2021-10-18T14:02:11.191Z", "appd-token": { "request": { "method": "post", "url": "https://*appdynamics-test-account*/controller/api/oauth/access_token", "headers": { "Authorizations": "AppDynamics Bearer Token", "grant_type": "client_credentials", "client_secret": "`AppDynamics Client Secret`", "client_id": "Stage-CurlTest", "Content-Type": "application/vnd.appd.cntrl+protobuf;v=1", "Accept": "application/json" } }, "response_headers": { "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "1; mode=block", "connection": "keep-alive", "server": "AppDynamics", "date": "Mon, 18 Oct 2021 14:02:10 GMT" }, "runtime_seconds": 0.36, "host": "SAPPLOG03", "name": "AppDynamics", "response_message": "Not Acceptable", "code": 406, "times_retried": 0 }, "@version": "1", "tags": [ "_httprequestfailure" ] } ```
New to both the http_poller filter and the AppDynamics Metric REST API so not sure what I have configured wrong. I have also posted to the Elastic Community forum.
I have removed any account-specific information for security reasons so any additional information that would be helpful let me know and I'll get it for this post.
Thanks, Bill
... View more