# Elastic Agent Not Sending Logs from Endpoint Outside the Network (AWS Cloud deployemnt on VM)

**URL:** <https://discuss.elastic.co/t/elastic-agent-not-sending-logs-from-endpoint-outside-the-network-aws-cloud-deployemnt-on-vm/364122>\
**Category:** Elastic Agent\
**Created:** [July 31, 2024, 8:40am UTC](https://discuss.elastic.co/t/elastic-agent-not-sending-logs-from-endpoint-outside-the-network-aws-cloud-deployemnt-on-vm/364122 "2024-07-31T08:40:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed\_fetoh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmed_fetoh/32/126695_2.png) [@ahmed\_fetoh](https://discuss.elastic.co/u/ahmed_fetoh)\
**Post date:** [July 31, 2024, 8:40am UTC](https://discuss.elastic.co/t/elastic-agent-not-sending-logs-from-endpoint-outside-the-network-aws-cloud-deployemnt-on-vm/364122/1 "2024-07-31T08:40:29Z")

</div>

Hello!

**Description:**  
I have deployed a setup on AWS with two VMs:

1. One VM running Elasticsearch.
2. Another VM running Kibana and Fleet Server.

**Issue:**  
When I try to install an agent to collect logs from an endpoint, Elastic only receives the status and health information, but no logs are sent.  
However, if the endpoint is within the network (not outside the network), it successfully sends the logs as shown below in the snap

and when I tried to add the elastic defend policy to see if there was any error I found the below error

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d1270f61c97f6fb947535b092d4028fb73e5f9c3.png)

**Question:**  
Is this issue related to AWS configuration, or is there something missing in the ELK configuration? What steps can I take to resolve this issue and ensure that logs are correctly collected from endpoints outside the network?
