UDP input plugin fails with SocketError: bind: name or service not known
UDP input plugin fails with SocketError: bind: name or service not known
这是我的 logstash 配置文件。我想通过使用类型来使用多个配置文件。
input {
udp {
port => 62555
type => 4444
}
}
output {
if [type] == "4444" {
}
}
错误是:
←[33mUDP listener died {:exception=>#<SocketError: bind: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyUDPSocket.java:157:in `bind'","F:/elasticsearch-2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-input-udp-2.0.5/lib/logstash/inputs/udp.rb:67:in `udp_listener'", "F:/elasticsearch-2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-input-udp2.0.5/lib/logstash/inputs/udp.rb:50:in `run'", "F:/elasticsearch-2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:342:in `inputworker'", "F:/elasticsearch2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:336:in `start_input'"], :level=>:warn}←[0m
udp 输入插件的 type
选项需要一个字符串(参见 documentation):
type
Value type is string
There is no default value for this setting.
因此您需要在 type
选项周围添加 "
。
端口是udp输入的必选项,如果有问题,需要更改服务器配置。
这是我的 logstash 配置文件。我想通过使用类型来使用多个配置文件。
input {
udp {
port => 62555
type => 4444
}
}
output {
if [type] == "4444" {
}
}
错误是:
←[33mUDP listener died {:exception=>#<SocketError: bind: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyUDPSocket.java:157:in `bind'","F:/elasticsearch-2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-input-udp-2.0.5/lib/logstash/inputs/udp.rb:67:in `udp_listener'", "F:/elasticsearch-2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-input-udp2.0.5/lib/logstash/inputs/udp.rb:50:in `run'", "F:/elasticsearch-2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:342:in `inputworker'", "F:/elasticsearch2.3.1/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:336:in `start_input'"], :level=>:warn}←[0m
udp 输入插件的 type
选项需要一个字符串(参见 documentation):
type
Value type is string
There is no default value for this setting.
因此您需要在 type
选项周围添加 "
。
端口是udp输入的必选项,如果有问题,需要更改服务器配置。