【发布时间】:2021-11-14 22:25:23
【问题描述】:
我正在尝试向运行 logstash 的机器添加一个额外的插件。
我无法直接从 Internet 加载插件,因为无法从该主机访问 Internet。
我尝试使用以下方法从 VM 导出插件的离线副本:
/usr/share/logstash/bin/logstash-plugin prepare-offline-pack --output logstash-output-syslog.zip logstash-output-syslog
但是插件不会在目标机器上加载,它抱怨logstash-codec-plain的版本。
我尝试在 VM 上降级 logstash-codec-plain 的版本,以便重新导出正确的版本,但这不起作用:
"The bundle currently has logstash-codec-plain locked at 3.1.0. Try running `bundle update logstash-codec-plain`"
我不知道run `bundle update` 意味着什么。
我试图删除logstash-codec-plain,希望我可以重新安装一个较低的版本,但也没有用:
Failed to remove "logstash-codec-plain" because the following plugins or libraries depend on it:
* logstash-mixin-aws
* logstash-mixin-http_client
我不知道为什么它抱怨这两个插件,我已经删除了这两个插件,以及很多其他插件。
/usr/share/logstash/bin/logstash-plugin remove logstash-mixin-aws
...
ERROR: Operation aborted, cannot remove plugin, message: This plugin has not been previously installed
【问题讨论】:
标签: logstash