# Gelf listener died

**URL:** <https://discuss.elastic.co/t/gelf-listener-died/61580>\
**Category:** Logstash\
**Created:** [September 27, 2016, 8:44am UTC](https://discuss.elastic.co/t/gelf-listener-died/61580 "2016-09-27T08:44:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Lecour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremy_lecour/32/1416_2.png) [@Jeremy\_Lecour](https://discuss.elastic.co/u/Jeremy_Lecour)\
**Post date:** [September 27, 2016, 8:44am UTC](https://discuss.elastic.co/t/gelf-listener-died/61580/1 "2016-09-27T08:44:49Z")

</div>

Hi,

I have a lot of errors like this (every 5 seconds) :

```
{
  :timestamp=>"2016-09-27T10:36:52.024000+0200",
  :message=>"gelf listener died",
  :exception=>#<SocketError: bind: name or service not known>,
  :backtrace=>[
    "org/jruby/ext/socket/RubyUDPSocket.java:160:in `bind'",
    "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-gelf-2.0.7/lib/logstash/inputs/gelf.rb:98:in `udp_listener'",
    "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-gelf-2.0.7/lib/logstash/inputs/gelf.rb:77:in `run'",
    "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:342:in `inputworker'",
    "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:336:in `start_input'"
  ],
  :level=>:warn
}

```

here is my input config :

```
 input {
  beats {
    port => 5044
  }
  gelf {
    port => 12201
    # use_tcp => true
    type => "gelf"
  }
}

```

If I knew which "name or service" it's trying to connect to, it would help.  
For the moment, I have no clue 😕

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Jeremy\_Lecour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremy_lecour/32/1416_2.png) [@Jeremy\_Lecour](https://discuss.elastic.co/u/Jeremy_Lecour)\
**Post date:** [October 4, 2016, 12:28pm UTC](https://discuss.elastic.co/t/gelf-listener-died/61580/2 "2016-10-04T12:28:13Z")

</div>

I've monkey-patched the code and the exception is raised when trying to bind to `0.0.0.0:1220`.

---

<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, 4:35am UTC](https://discuss.elastic.co/t/gelf-listener-died/61580/3 "2017-07-06T04:35:55Z")

</div>


