title: Failed to connect to backoff(async(tcp://ip:5044)): dial tcp ip:5044: i/o timeout
body: <p>Filebeat is running on Machine B which read logs and push to ELK logstash on Machine A.</p>
  
  <p>But in the Machine B filebeat log, it shows the error <code>i/o timeout</code></p>
  
  <pre><code>2019-08-24T12:13:10.065+0800    ERROR   pipeline/output.go:100  Failed to connect to backoff(async(tcp://example.com:5044)): dial tcp xx.xx.xx.xx:5044: i/o timeout 
  2019-08-24T12:13:10.065+0800    INFO    pipeline/output.go:93   Attempting to reconnect to backoff(async(tcp://example.com:5044)) with 1 reconnect attempt(s)
  </code></pre>
  
  <p>I've check the logstash on Machine A which running well, can listening on <code>0 0.0.0.0:5044</code></p>
  
  <p>Here is the logstash log</p>
  
  <pre><code>[INFO ] 2019-08-24 12:09:35.217 [[main]-pipeline-manager] beats - Beats inputs: Starting input listener {:address=&gt;"0.0.0.0:5044"}
  </code></pre>
  
  <p>And here is <code>netstat</code> output,</p>
  
  <pre><code>$ sudo netstat -tlnp
  Active Internet connections (only servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  tcp        0      0 0.0.0.0:5044            0.0.0.0:*               LISTEN      20668/java
  </code></pre>
  
  <p>I also check the firewall on Machine A is closed.</p>
  
  <pre><code>$ firewall-cmd --list-all
  FirewallD is not running
  </code></pre>
  
  <pre><code>$ sudo iptables -L
  Chain INPUT (policy ACCEPT)
  target     prot opt source               destination
  
  Chain FORWARD (policy DROP)
  target     prot opt source               destination
  </code></pre>
  
  <p>I also use telnet to connect Machine A, But I get this,</p>
  
  <pre><code>$ telnet example.com 5044
  Trying xx.xx.xx.xx...
  telnet: connect to address xx.xx.xx.xx: Connection timed out
  </code></pre>
  
  <p>I run the filebeat with same config on Machine A(local) to check it the config for filebeat on Machine B(remote) is wrong, it works well.</p>
  
  <pre><code>2019-08-24T14:17:35.195+0800    INFO    pipeline/output.go:95   Connecting to backoff(async(tcp://localhost:5044))
  2019-08-24T14:17:35.198+0800    INFO    pipeline/output.go:105  Connection to backoff(async(tcp://localhost:5044)) established
  </code></pre>