# Failure connecting to x.x.x.x: dial tcp x.x.x.x❌ connection refused

**URL:** <https://discuss.elastic.co/t/failure-connecting-to-x-x-x-x-dial-tcp-x-x-x-x-x-connection-refused/19007>\
**Category:** Elasticsearch\
**Created:** [July 31, 2014, 12:56pm UTC](https://discuss.elastic.co/t/failure-connecting-to-x-x-x-x-dial-tcp-x-x-x-x-x-connection-refused/19007 "2014-07-31T12:56:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indirajith\_V](https://avatars.discourse-cdn.com/v4/letter/i/57b2e6/32.png) [@Indirajith\_V](https://discuss.elastic.co/u/Indirajith_V)\
**Post date:** [July 31, 2014, 12:56pm UTC](https://discuss.elastic.co/t/failure-connecting-to-x-x-x-x-dial-tcp-x-x-x-x-x-connection-refused/19007/1 "2014-07-31T12:56:49Z")

</div>

Hi all, I am Naive to elasticsearch and logstash. Logstash suddenly. When I  
looked in to the logs parsed and I can only see the following.  
Jul 31 14:55:16 logs 2014-07-31T14:55:16+02:00 ....  
logstash-forwarder[22514]: 2014/07/31 14:55:16.595025 Failure connecting to  
x.x,x.x: dial tcp x.x.x.x:x: connection refused.  
Can anyone help to rectify this. I can not find any solution. Thanks in  
advance!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/96794c7b-120c-4159-945d-ef184c94abe1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/96794c7b-120c-4159-945d-ef184c94abe1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 4, 2014, 9:09am UTC](https://discuss.elastic.co/t/failure-connecting-to-x-x-x-x-dial-tcp-x-x-x-x-x-connection-refused/19007/2 "2014-08-04T09:09:24Z")

</div>

Hey

this means, that the logstash forwarder could not connect to its configured  
endpoint, because that endpoint does not seem to run. Check if that service  
is up and running or maybe just misconfigured.

--Alex

On Thu, Jul 31, 2014 at 2:56 PM, Indirajith V [indirajithv@gmail.com](mailto:indirajithv@gmail.com) wrote:

> Hi all, I am Naive to elasticsearch and logstash. Logstash suddenly. When  
> I looked in to the logs parsed and I can only see the following.  
> Jul 31 14:55:16 logs 2014-07-31T14:55:16+02:00 ....  
> logstash-forwarder[22514]: 2014/07/31 14:55:16.595025 Failure connecting to  
> x.x,x.x: dial tcp x.x.x.x:x: connection refused.  
> Can anyone help to rectify this. I can not find any solution. Thanks in  
> advance!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/96794c7b-120c-4159-945d-ef184c94abe1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/96794c7b-120c-4159-945d-ef184c94abe1%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/96794c7b-120c-4159-945d-ef184c94abe1%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/96794c7b-120c-4159-945d-ef184c94abe1%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8X6BF%3DxDS8sDZwhYFdPz3ev6LV\_UZ-CoCm2\_2csfdvvw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8X6BF%3DxDS8sDZwhYFdPz3ev6LV_UZ-CoCm2_2csfdvvw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:11am UTC](https://discuss.elastic.co/t/failure-connecting-to-x-x-x-x-dial-tcp-x-x-x-x-x-connection-refused/19007/3 "2017-07-06T01:11:07Z")

</div>


