Filebeat refuse connect to Logstash port- "Connection timed out error"

Hi @pash123, welcome to the Elastic community forums!

Yes, I suspect this has to do with firewall rules between your Filebeat and Logstash hosts. I see that ping worked but that just means that ICMP echo requests are being allowed. We need to check if TCP requests to port 5044 are allowed from your Filebeat host to your Logstash host.

What happens if you run the following on your Filebeat host?

telnet 192.168.220.33 5044