# Connecting error publishing events

**URL:** <https://discuss.elastic.co/t/connecting-error-publishing-events/41148>\
**Category:** Beats\
**Created:** [February 7, 2016, 8:23pm UTC](https://discuss.elastic.co/t/connecting-error-publishing-events/41148 "2016-02-07T20:23:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_perez](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pablo\_perez](https://discuss.elastic.co/u/Pablo_perez)\
**Post date:** [February 7, 2016, 8:23pm UTC](https://discuss.elastic.co/t/connecting-error-publishing-events/41148/1 "2016-02-07T20:23:47Z")

</div>

I´m having similar issue when I try to connect to my logstash

Logstash version 2.0.0  
Filebeat 1.0.1

Here the error

INFO Connecting error publishing events (retrying): dial tcp 192.168.50.5:14560: getsockopt: connection refused  
This is my logstash configuration

input {  
beats {  
codec =\> json  
port =\> 14560  
}  
}  
output {  
elasticsearch {hosts=\> localhost}  
stdout {codec = \> rubydebug}  
}

I install the filebeat logstash plugin as I read it

`./plugin install logstash-input-beats`  
I´m completely run out of ideas, and I would love to use this framework, but it´s seems not responding at all.  
Any ideas would be great.

Regards.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 7, 2016, 8:43pm UTC](https://discuss.elastic.co/t/connecting-error-publishing-events/41148/2 "2016-02-07T20:43:43Z")

</div>

What does your Filebeat configuration look like? Are you able to telnet to the Logstash instance from the node where Filebeat is installed?

---

<div class="post-metadata">

**Author:** ![Pablo\_perez](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pablo\_perez](https://discuss.elastic.co/u/Pablo_perez)\
**Post date:** [February 7, 2016, 9:09pm UTC](https://discuss.elastic.co/t/connecting-error-publishing-events/41148/3 "2016-02-07T21:09:51Z")

</div>

Nope I cannot telnet, even on the same machine curl localhost:14560 cannot give me nothing. Or telnet from outside, so first thing that I need to figure out is what's wrong with logstash configuration. Since Upgrade to version 2.0 and I add the input plugin beats I cannot reach logstash. Previously with version 1.4.2 and Input { tcp{port =\>14560}} I was able to telnet to localhost:14560. But now not anymore.  
The thing is, that when I run logstash he tell me that configuration is fine and if I use beats plugin please report whatever bug that I found, so I guess configuration was fine.

Enviado desde mi iPhone

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [February 9, 2016, 12:47am UTC](https://discuss.elastic.co/t/connecting-error-publishing-events/41148/5 "2016-02-09T00:47:23Z")

</div>

maybe let's try with the most simple config first:

```auto
input {
  beats {
    port => 14560
  }
}
output {
    stdout {codec = > rubydebug}
}

```

Can you telnet into logstash when using this config? Anything in logstash logs?

---

<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 5, 2017, 9:55pm UTC](https://discuss.elastic.co/t/connecting-error-publishing-events/41148/6 "2017-07-05T21:55:55Z")

</div>


