使用logstash-plugin install logstash-input-jdbc
插件时报错
命令和报错如下
ERROR: Something went wrong when installing <PLUGIN>, message: certificate verify failed.
在install后加上参数 --no-vertify 命令为logstash-plugin install --no-vertify logstash-input-jdbc
,仍然报同样错误
解决办法:
打开logstash安装目录下的/lib/pluginmanager/install.rb
文件,
在require "fileutils"
下一行添加OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
# encoding: utf-8
require "pluginmanager/command"
require "pluginmanager/install_strategy_factory"
require "pluginmanager/ui"
require "pluginmanager/errors"
require "jar-dependencies"
require "jar_install_post_install_hook"
require "file-dependencies/gem"
require "fileutils"
OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE) #添加此行
再次进行 logstash-plugin install --no-vertify logstash-input-jdbc
就可以成功安装插件