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

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)