-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logstash syslog input causing a "UDP Listener died" error #3214
Comments
I am seeing the same issue. The exception is : I am not using docker though. This is with log stash running on ubuntu. |
I've got the same problem: {:timestamp=>"2015-06-15T11:54:24.265000+0200", :message=>"syslog listener died", :protocol=>:udp, :address=>"0.0.0.0:5517", :exception=>#<SocketError: recvfrom: name or service not known>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-syslog-0.1.6/lib/logstash/inputs/syslog.rb:138:in Using multiple syslog inputs at once, tried to replace "syslog" input with "tcp", did not work either. |
Okay, maybe this helps: I changed a line in the syslog input gem file (/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-syslog-0.1.6/lib/logstash/inputs/syslog.rb in my case). There's a part, where the TCP listener is defined:
ensure I replaced " break if @shutdown_requested.true?" with " break if @shutdown_requested.false?" and logstash hasn't crashed since then. This was three days ago, normally logstash would crash after a few hours at the latest. It is a dirty hack, but it seems to work... |
I'm running into this same problem. Added a comment on logstash-plugins/logstash-input-syslog#18 since this is an issue with the plugin, not logstash itself. |
I am getting the same error by listening to the local syslog on the same server that logstash is present. Hence seeing errors on port 514 (default port that syslog writes to). Anybody has a workaround please? |
Getting following error while stopping and starting logstash server: UDP listener died {:exception=>#<SocketError: recvfrom: name or service not known>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-udp-0.1.4/lib/logstash/inputs/udp.rb:79:in |
Same problem here. Running docker with logstash:latest.
|
@jotunskij Had the same issue, and found out that docker opens ports on TCP by default unless UDP is explicitly mentioned: -p 5959:5959 (that's open TCP port) -p 5959:5959/udp (that's open UDP) |
@davidt99 Unfortunately I already published the port with /udp specified. However I did seem to solve this problem by just switching the port and binding to 0.0.0.0. This is the complete flag I'm using with docker run: |
Same problem here. Running docker with logstash:latest. input {
} docker run --name=logstash_mesos WARN logstash.inputs.udp - UDP listener died {:exception=>#<SocketError: bind: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyUDPSocket.java:160:in |
but 5140 is OK: input {
} 02:38:21.137 [[main]<udp] INFO logstash.inputs.udp - Starting UDP listener {:address=>"0.0.0.0:5140"} |
what user are you running as? To bind to 514 (or any port below 1024) you need to run as root |
@IrlJidel Thank you, you're right. I did't run as root . |
I solved by publishing the udp port. +1 |
Hi all,
I am trying to receive syslog input from a syslog server which is being fed logs from Docker containers via logspout.
I am rather sure that I configured the input correctly to receive syslog on port 5000. Here is my input config for syslog
And here is my full input config on pastebin: http://pastebin.com/qcX5tFTi
Here is the error I am receiving: http://pastebin.com/jJxZsULX
The port is being used by Logstash, as shown by
I've tried reading up on this ticket #1896 but I don't think this is a reserved port issue or a permissions issue.
Could anyone help me debug this error? From what I can tell, my configuration is correct.
The text was updated successfully, but these errors were encountered: