我正在运行logstash,就像它在起始页面中说的那样:
java -jar logstash-1.2.1-flatjar.jar agent --config logstash-dev.conf
使用logstash-dev.conf,如下所示:
input {
file {
path => ["/tmp/catalina.jsonevent.log"]
codec => json {
charset => "UTF-8"
}
}
}
output {
# Use stdout in debug mode again to see what logstash makes of the event.
stdout {
debug => true
}
elasticsearch_http {
host => "127.0.0.1"
}
}
它跳出了这个错误:
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (StoreError) loading file failed: problem creating X509 Aux certificate: java.io.IOException: problem parsing cert: java.security.cert.CertificateParsingException: java.io.IOException: Duplicate extensions not allowed
at org.jruby.ext.openssl.X509Store.add_file(org/jruby/ext/openssl/X509Store.java:151)
at RUBY.initialize(file:/usr/local/bin/logstash/logstash-1.2.1-flatjar.jar!/ftw/agent.rb:70)
at RUBY.register(file:/usr/local/bin/logstash/logstash-1.2.1-flatjar.jar!/logstash/outputs/elasticsearch_http.rb:46)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1617)
at RUBY.outputworker(file:/usr/local/bin/logstash/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:208)
at RUBY.start_outputs(file:/usr/local/bin/logstash/logstash-1.2.1-flatjar.jar!/logstash/pipeline.rb:140)
我到处寻找(google,logstash和jruby的邮件组,以及他们的ircs相同),但我找不到解决这个问题的方法。我只看到类似的堆栈跟踪,但没有解决方案。
你能给我一个指针吗?
提前致谢
答案 0 :(得分:4)
我们一直在寻找这个,并为我们解决了这个问题:
curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/etc/openssl/cert.pem