Issue enrolling into fleet

HI @f4n-1nh1b1t1l

You're leaving out the basics, which are important if you want help.

  1. What version are you on?
  2. How did you install Elasticsearch, Kibana, and Fleet?
  3. Is Fleet working?
  4. Are you using the self-signed certs?
  5. Is the Elastic Agent on the same host as Elasticsearch?
  6. Did you set the correct elasticsearch output url in the fleet settings? (Common Mistake, it defaults to localhost)

Perhaps look at this post about setting the default Elasticsearch and Fleet output:

Next, I would test connectivity from the host where the agent is running to Elasticsearch:

curl -v -k -u elastic https://<elasticip>:9200

What is the result of that?

  • Make sure that works; if not, your Elasticsearch is not reachable.
  • If this does work, set the correct Elasticsearch output in the Fleet Settings. Its default is http://localhost, which could be why you keep seeing the error—this is a common mistake.

Then, install the agent using the install command from Kibana Fleet Add Agent command with the correct URL etc