# Problem to connect filebeat to logstash (no route to host)

**URL:** <https://discuss.elastic.co/t/problem-to-connect-filebeat-to-logstash-no-route-to-host/106262>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 3, 2017, 1:03am UTC](https://discuss.elastic.co/t/problem-to-connect-filebeat-to-logstash-no-route-to-host/106262 "2017-11-03T01:03:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandre\_29](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@alexandre\_29](https://discuss.elastic.co/u/alexandre_29)\
**Post date:** [November 3, 2017, 1:03am UTC](https://discuss.elastic.co/t/problem-to-connect-filebeat-to-logstash-no-route-to-host/106262/1 "2017-11-03T01:03:43Z")

</div>

Hello,

At first, sorry for my english because, i'm french 🙂

I follow a tutorial to install ELK at this adress :  
[https://www.howtoforge.com/tutorial/how-to-install-elastic-stack-on-centos-7/](https://www.howtoforge.com/tutorial/how-to-install-elastic-stack-on-centos-7/)

I just have two centos VM. The first is the ELK server and the second have the filebeat configuration but the filebeat can't connect to logstash and i don't know why ?

the result of tail -f /var/log/filebeat/filebeat is :

2017-11-03T01:54:07+01:00 ERR Connecting error publishing events (retrying): dial tcp 10.0.15.10:5443: getsockopt: no route to host  
2017-11-03T01:54:32+01:00 INFO No non-zero metrics in the last 30s  
2017-11-03T01:55:02+01:00 INFO No non-zero metrics in the last 30s  
2017-11-03T01:55:22+01:00 ERR Connecting error publishing events (retrying): dial tcp 10.0.15.10:5443: getsockopt: no route to host  
2017-11-03T01:55:32+01:00 INFO No non-zero metrics in the last 30s  
2017-11-03T01:56:02+01:00 INFO No non-zero metrics in the last 30s  
2017-11-03T01:56:32+01:00 INFO No non-zero metrics in the last 30s  
2017-11-03T01:56:52+01:00 ERR Connecting error publishing events (retrying): dial tcp 10.0.15.10:5443: i/o timeout  
2017-11-03T01:57:02+01:00 INFO No non-zero metrics in the last 30s

Can you help me ?

Thanks.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [November 3, 2017, 1:18am UTC](https://discuss.elastic.co/t/problem-to-connect-filebeat-to-logstash-no-route-to-host/106262/2 "2017-11-03T01:18:13Z")

</div>

> [@alexandre\_29](#):
>
> no route to host

Sounds like you don't have proper networking between the two hosts. Are you able to ping between the two hosts?

You should probably review the official Filebeat [Getting Started](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html) docs too just in case the tutorial you are following is missing something.

---

<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:** [December 1, 2017, 1:18am UTC](https://discuss.elastic.co/t/problem-to-connect-filebeat-to-logstash-no-route-to-host/106262/3 "2017-12-01T01:18:17Z")

</div>

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