这是我的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
答案 0 :(得分:1)
udp输入插件的type
选项需要一个字符串(cf documentation):
<强>型强>
值类型是字符串
此设置没有默认值。
因此,您需要在"
选项周围添加type
。
端口是udp输入的必备选项,如果您遇到问题,则需要更改服务器的配置。