第一步:安装好Logstash
第二步:下载相关依赖 gem
安装 gem
yum install gem -y
安装成功之后,修改数据源换成国内的
命令: gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l


修改Logstash 的数据源和上面一致
vim Gemfile
修改里面的source

修改 vim Gemfile.lock

到logstash的bin目录下运行下面的命令,查看可用的插件
./logstash-plugin list --verbose (显示所有插件版本信息)
之后进去到logstash bin 目录下执行下载
[xx@xxx] logstash-7.3.2]$ bin/logstash-plugin install logstash-input-jdbc
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/home/epm/logstash-7.3.2/vendor/jruby/lib/ruby/stdlib/jopenssl.jar) to constructor java.security.cert.CertificateFactory(java.security.cert.CertificateFactorySpi,java.security.Provider,java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Validating logstash-input-jdbc
Installing logstash-input-jdbc
Installation successful
表示下载成功。
网友评论