我有点怀疑你在刷屏

logstash 链接 elasticsearch 报错

Logstash | 作者 jcq880325 | 发布于2017年05月10日 | 阅读数:5664

配置文件:input {
#stdin {}
file{
path => ["/home/chaoquan/log/tags.auto.sina.com.cn_access.log"]
}
http{
ssl => false
}
}
output{
elasticsearch {
hosts => ["10.235.56.241:9200"]
index => "elk_log"
}
#stdout {
# codec => json
#}
}

运行:./bin/logstash -f config/elsearch.conf
报错:
Sending Logstash's logs to /home/elsearch/logstash-5.1.2/logs which is now configured via log4j2.properties
[2017-05-10T18:44:16,050][ERROR][logstash.agent ] Pipeline aborted due to error {:exception=>#<Errno::EADDRINUSE: Address already in use - bind - å°åå·²å¨ä½¿ç¨>, :backtrace=>["org/jruby/ext/socket/RubyTCPServer.java:118:in `initialize'", "org/jruby/RubyIO.java:871:in `new'", "/home/elsearch/logstash-5.1.2/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/binder.rb:234:in `add_tcp_listener'", "(eval):2:in `add_tcp_listener'", "/home/elsearch/logstash-5.1.2/vendor/bundle/jruby/1.9/gems/logstash-input-http-3.0.3/lib/logstash/inputs/http.rb:120:in `register'", "/home/elsearch/logstash-5.1.2/logstash-core/lib/logstash/pipeline.rb:353:in `start_inputs'", "org/jruby/RubyArray.java:1613:in `each'", "/home/elsearch/logstash-5.1.2/logstash-core/lib/logstash/pipeline.rb:352:in `start_inputs'", "/home/elsearch/logstash-5.1.2/logstash-core/lib/logstash/pipeline.rb:228:in `start_workers'", "/home/elsearch/logstash-5.1.2/logstash-core/lib/logstash/pipeline.rb:183:in `run'", "/home/elsearch/logstash-5.1.2/logstash-core/lib/logstash/agent.rb:292:in `start_pipeline'"]}
[2017-05-10T18:44:16,212][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2017-05-10T18:44:19,059][WARN ][logstash.agent ] stopping pipeline {:id=>"main"}

求各位大神指点,谢谢。。。
已邀请:

medcl - 今晚打老虎。

赞同来自:

·Address already in use·
你配置里面对应的端口肯定有冲突,异常都告诉你了。

要回复问题请先登录注册