Hi guy's i'm setting up an elastic-agent on a Windows machine... and looking through the logs i'm seeing the following error:
{"log.level":"error","@timestamp":"2021-03-03T09:41:49.593-0500","log.origin":{"file.name":"application/fleet_gateway.go","file.line":187},"message":"Could not communicate with Checking API will retry, error: could not decode the response
"message":"Could not communicate with Checking API will retry, error: could not decode the response
^ I can make a test POST request to the endpoint just fine... not sure why elastic-agent is throwing the error.
Also i'm receiving Elasticsearch data just fine to my Elasticsearch endpoint to https://elasticsearch.mydomain.com ... it's just that Kibana can't make this request and then the ElasticAgent shuts down and stops working
Note: I am using Cloudflare and nginx as a reverse proxy to both my Kibana and ElasticSearch endpoints.
I can see that a POST request is being made to my elasticsearch endpoint... but when I do a CURL (as shown in my original post) or go to the URL in the browser it works just fine?
Note: I'm reverse proxying the Kibana and ElasticSearch ports to 443 for each service. I had to put the port on the end of both the Kibana URL and ElasticSearch URL, or else it would try to use the default 5601 and 9200 ports.
Is there something else i'm missing?
Also please look at this... ElasticAgent (on the right) can't send the request for some reason.. while I make make the same CURL request on the left?
@nchaulet i'm able to install the elastic agent and i'm receiving logs with Elasticsearch.. what's stopping that CheckIn request? Do I need to provide credentials somewhere for it?
Fleet use long polling for that checkin call, it's possible that you reverse proxy has some timeout issue here, by default the long polling call is configured to be 5 minutes.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.