Logstash Plugins2

2022-02-10 20:19:46 浏览数 (2)

plugin uninstall

代码语言:javascript复制
[root@h102 ~]# /opt/logstash/bin/plugin uninstall -h 
Usage:
    bin/plugin uninstall [OPTIONS] PLUGIN

Parameters:
    PLUGIN                        plugin name

Options:
    -h, --help                    print help
[root@h102 ~]# 
修改镜像源
代码语言:javascript复制
[root@h102 logstash]# cd /opt/logstash/
[root@h102 logstash]# vim Gemfile
[root@h102 logstash]# grep source Gemfile
source "https://ruby.taobao.org"
[root@h102 logstash]# 

Note: 如果不修改,所有涉及插件变更的操作都会报错,原因是 The Great Wall ,如下

代码语言:javascript复制
[root@h102 ~]# /opt/logstash/bin/plugin uninstall logstash-output-kafka
Uninstalling logstash-output-kafka
Error Bundler::InstallError, retrying 1/10
An error occurred while installing arr-pm (0.0.10), and Bundler cannot continue.
Make sure that `gem install arr-pm -v '0.0.10'` succeeds before bundling.
WARNING: SSLSocket#session= is not supported

^C
代码语言:javascript复制
[root@h102 ~]# /opt/logstash/bin/plugin install logstash-output-kafka
Validating logstash-output-kafka
Unable to download data from https://rubygems.org - Connection reset by peer (https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-kafka 
[root@h102 ~]# 

0 人点赞