# Issue enrolling into fleet

**URL:** <https://discuss.elastic.co/t/issue-enrolling-into-fleet/383470>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [November 16, 2025, 9:03pm UTC](https://discuss.elastic.co/t/issue-enrolling-into-fleet/383470 "2025-11-16T21:03:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 17, 2025, 3:03am UTC](https://discuss.elastic.co/t/issue-enrolling-into-fleet/383470/2 "2025-11-17T03:03:50Z")

</div>

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:

> [@Elastic-agent 8.17.7: logs are not being harvested from .log files on Windows host](https://discuss.elastic.co/t/elastic-agent-8-17-7-logs-are-not-being-harvested-from-log-files-on-windows-host/379447/6):
>
> Hi @kiedis Lets Back Up ... exactly how did you install Elastic Agent? Did you follow the guided Installation from the Fleet UI? It should look something like $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.18.3-windows-x86\_64.zip -OutFile elastic-agent-8.18.3-windows-x86\_64.zip Expand-Archive .\elastic-agent-8.18.3-windows-x86\_64.zip -DestinationPath . cd elast…

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](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

---

_[View the full topic](https://discuss.elastic.co/t/issue-enrolling-into-fleet/383470)._
