Logstash 无法从 collectd 获取数据

Logstash Failing to get data from collectd

我的 collectd 正在通过端口 25826 向 logstash 发送数据,但我在 运行 logstash

上看到这个错误
UDP 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-udp-2.0.5/lib/logstash/inputs/udp.rb:67:in `udp_listener'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-udp-2.0.5/lib/logstash/inputs/udp.rb:50:in `run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb:342:in `inputworker'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb:336:in `start_input'"], :level=>:warn}

有人知道这里的解决方案吗?

已修复

  • No error at Logstash the collector collectd was not sending the data to logstash udp port corrected it by adding conf in network plugin of collectd enabled that plugin in collectd.conf and replace hostname with logstash host and udp port.