# Does elastic-agent enrolled in fleet with system integration needs port opened to elasticsearch nodes?

**URL:** <https://discuss.elastic.co/t/does-elastic-agent-enrolled-in-fleet-with-system-integration-needs-port-opened-to-elasticsearch-nodes/375992>\
**Category:** Elastic Agent\
**Created:** [March 17, 2025, 8:41am UTC](https://discuss.elastic.co/t/does-elastic-agent-enrolled-in-fleet-with-system-integration-needs-port-opened-to-elasticsearch-nodes/375992 "2025-03-17T08:41:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikhatanu](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@mikhatanu](https://discuss.elastic.co/u/mikhatanu)\
**Post date:** [March 17, 2025, 8:41am UTC](https://discuss.elastic.co/t/does-elastic-agent-enrolled-in-fleet-with-system-integration-needs-port-opened-to-elasticsearch-nodes/375992/1 "2025-03-17T08:41:10Z")

</div>

I have a 3 elasticsearch nodes, 1 elastic agent fleet server node, and 8 elastic-agent server. The elastic-agent have custom logs and system integration. I have opened ports from elastic agent to fleet server. Does the elastic agent needs to have port opened to the elasticsearch nodes?

---

<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:** [March 17, 2025, 2:54pm UTC](https://discuss.elastic.co/t/does-elastic-agent-enrolled-in-fleet-with-system-integration-needs-port-opened-to-elasticsearch-nodes/375992/2 "2025-03-17T14:54:48Z")

</div>

Yes Elastic Agent communicates with both Fleet Server (Control / Policy: Black lines) and Elasticsearch (Data: Pink lines and Monitoring: blue lines) see the diagram in the docs below.

Perhaps take a look at the deployment diagram to help

> **[Deploy on Elastic Cloud | Fleet and Elastic Agent Guide \[8.17\] | Elastic](https://www.elastic.co/guide/en/fleet/current/add-fleet-server-cloud.html)**

> **[Deploy on-premises and self-managed | Fleet and Elastic Agent Guide \[8.17\] |...](https://www.elastic.co/guide/en/fleet/current/add-fleet-server-on-prem.html)**
