# Agent healthy but not sending logs

**URL:** <https://discuss.elastic.co/t/agent-healthy-but-not-sending-logs/364405>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [August 5, 2024, 3:44pm UTC](https://discuss.elastic.co/t/agent-healthy-but-not-sending-logs/364405 "2024-08-05T15:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirolosmena299](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kirolosmena299](https://discuss.elastic.co/u/kirolosmena299)\
**Post date:** [August 5, 2024, 3:44pm UTC](https://discuss.elastic.co/t/agent-healthy-but-not-sending-logs/364405/1 "2024-08-05T15:44:34Z")

</div>

I installed Elasticsearch on a server and Fleet on the same server,  
we I tried to install the agent to a server with the same subnet using a private IP it worked fine, but when I installed the agent to another server using the elastic public IP it showed agent health and enrolled successfully to fleet but did not send any logs I tried with many other server and same case.

---

<div class="post-metadata">

**Author:** ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)\
**Post date:** [August 28, 2024, 12:15pm UTC](https://discuss.elastic.co/t/agent-healthy-but-not-sending-logs/364405/4 "2024-08-28T12:15:01Z")

</div>

Is the Elasticsearch output host accessible from the agent?  
You can investigate more if you look at the agent logs.

---

<div class="post-metadata">

**Author:** ![kirolosmena299](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kirolosmena299](https://discuss.elastic.co/u/kirolosmena299)\
**Post date:** [August 28, 2024, 12:29pm UTC](https://discuss.elastic.co/t/agent-healthy-but-not-sending-logs/364405/5 "2024-08-28T12:29:27Z")

</div>

I have looked at the agent logs and tried one of the Windows machine with Wireshark and no errors appear that would help  
and the output host which is IP:9200 is accessible yes by the Agent
