ssllogfile java_logstash配置ssl证书后启动报错

在配置了SSL证书后,Logstash在启动时遇到了主机名与证书主题不匹配的错误。错误出现在尝试连接到Elasticsearch的URL时,提示证书验证失败。
摘要由CSDN通过智能技术生成

[2020-04-28T22:45:58,626][INFO ][logstash.outputs.elasticsearch][main] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_writer:xxxxxx@192.168.1.234:9200/, https://logstash_writer:xxxxxx@192.168.1.233:9200/, https://logstash_writer:xxxxxx@192.168.1.240:9200/]}}

[2020-04-28T22:45:58,962][ERROR][logstash.javapipeline    ][main] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<:unknownexception: host name does not match the certificate subject provided by peer>, :backtrace=>["/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore/response.rb:37:in `block in initialize'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore/response.rb:79:in `call'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb:74:in `perform_request'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:332:in `perform_request_to_url'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:261:in `health_check_request'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:270:in `block in healthcheck!'", "org/jruby/RubyHash.java:1417:in `each'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:266:in `healthcheck!'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:382:in `update_urls'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:82:in `update_initial_urls'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:76:in `start'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:302:in `build_pool'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:64:in `initialize'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:103:in `create_http_client'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:99:in `build'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch.rb:238:in `build_client'", "/home/logstash/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.3-java/lib/logstash/outputs/elasticsearch/common.rb:25:in `register'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:106:in `register'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:48:in `register'", "/home/logstash/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:200:in `block in register_plugins'", "org/jruby/RubyArray.java:1800:in `each'", "/home/logstash/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:199:in `register_plugins'", "/home/logstash/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:475:in `maybe_setup_out_plugins'", "/home/logstash/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:212:in `start_workers'", "/home/logstash/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:154:in `run'", "/home/logstash/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:109:in `block in start'"], "pipeline.sources"=>["/home/logstash/logstash-7.5.1/config/conf/ceshi.conf", "/home/logstash/logstash-7.5.1/config/conf/logstash-sample.conf"], :thread=>"#<0x3a2c0fd2 run>"}0x3a2c0fd2>

[2020-04-28T22:45:58,984][ERROR][logstash.agent           ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create, action_result: false", :backtrace=>nil}

[2020-04-28T22:45:59,203][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=>9700}

[2020-04-28T22:46:04,082][INFO ][logstash.runner          ] Logstash shut down.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值