我正在尝试在Logstash(v5.4.2
)中安装OpsGenie输出插件(v2.0.5
)。
根据OpsGenie instructions,必须运行:
bin/plugin install logstash-output-opsgenie
在Logstash中5.4
should be:
bin/logstash-plugin install logstash-output-opsgenie
运行这个你得到:
Looking if package named: logstash-output-opsgenie exists at https://artifacts.elastic.co/downloads/logstash-plugins/logstash-output-opsgenie/logstash-output-opsgenie-5.4.2.zip
(但没有这样的神器:logstash-output-opsgenie-5.4.2.zip
)
甚至试图强制使用该版本:
$ DEBUG=1 bin/logstash-plugin install --version 2.0.5 logstash-output-opsgenie
你仍然得到:
DEBUG: exec /usr/share/logstash/vendor/jruby/bin/jruby /usr/share/logstash/lib/pluginmanager/main.rb install --version 2.0.5 logstash-output-opsgenie
Looking if package named: logstash-output-opsgenie exists at https://artifacts.elastic.co/downloads/logstash-plugins/logstash-output-opsgenie/logstash-output-opsgenie-5.4.2.zip
Network error, skipping Elastic pack, exception: Connection refused - Connection refused
如何安装此Logstash输出插件?
答案 0 :(得分:1)
在Logstash 上的配置下的OpsGenie instructions部分,还有另一个指向OpsGenie's Logstash plugin的链接。在该页面中有一个安装插件的命令
gem install logstash-output-opsgenie
如果OpsGenie插件依赖的其他logstash包然后运行此命令将安装该插件。之后,将目录更改为logstash所在的目录。然后运行
bin/logstash-plugin install logstash-output-opsgenie