# Can not collect logs if I installed beats on local machine or azure vm

**URL:** <https://discuss.elastic.co/t/can-not-collect-logs-if-i-installed-beats-on-local-machine-or-azure-vm/323313>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [January 17, 2023, 10:32am UTC](https://discuss.elastic.co/t/can-not-collect-logs-if-i-installed-beats-on-local-machine-or-azure-vm/323313 "2023-01-17T10:32:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zay\_Lin\_Htun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zay_lin_htun/32/102063_2.png) [@Zay\_Lin\_Htun](https://discuss.elastic.co/u/Zay_Lin_Htun)\
**Post date:** [January 17, 2023, 10:32am UTC](https://discuss.elastic.co/t/can-not-collect-logs-if-i-installed-beats-on-local-machine-or-azure-vm/323313/1 "2023-01-17T10:32:25Z")

</div>

Hi folks,

I have issue for log collecting when I installed the beats on outside of AWS Ec2 instances.  
My log architecture is beats \>\> kafka (ec2 vm) \>\> logstash (ec2 vm) \>\> elastic cloud

I can collect the logs if I installed beats on ec2 instances. But I can not collect the logs if I install the beats on azure vm, (the connection between auditbeat and kafla is etablished, no errors on logstash and kafka services as well)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 14, 2023, 10:33am UTC](https://discuss.elastic.co/t/can-not-collect-logs-if-i-installed-beats-on-local-machine-or-azure-vm/323313/2 "2023-02-14T10:33:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
