logstash-plugins / logstash-input-gelf

Apache License 2.0
20 stars 39 forks source link

Gelf listener dies when used at the same time as other inputs #58

Open mijamo opened 6 years ago

mijamo commented 6 years ago

I have a weird issue. My gelf input was working just fine until recently, but since I added another input (from google pub/sub), it crashes after some time because of a SocketError. the timing for the failure seems to be always around 1 day.

The error thrown is the following : <SocketError: recvfrom: name or service not known> with a stacktrace pointing to https://github.com/logstash-plugins/logstash-input-gelf/blob/7d5593009aaa202723a9fc71fbbb63964d62fbb8/lib/logstash/inputs/gelf.rb#L101

That error seems to completely crash Logstash, which is maybe a separate issue, as I would except the listener to just restart in such a situation.

If I remove the google_pubsub listener, gelf works again as expected (now running for 7 days without issue, but with pubsub it was consistently failing after 1 day 6 times in a row).