在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。

logstash配置ssl证书后启动报错

匿名 | 发布于2020年04月28日 | 阅读数:3561

[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=>#<Manticore::UnknownException: Host name '192.168.1.234' does not match the certificate subject provided by the peer (CN=node01)>, :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=>"#<Thread:0x3a2c0fd2 run>"}
[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<main>, 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.

 
已邀请:

chachabusi - 新手妹子运维,希望多多关照

赞同来自:

看看配置文件啊。。。。

要回复问题请先登录注册