2017-07-03 106 views
0

我試圖安裝在Logstash的OpsGenie輸出插件(v2.0.5)(v5.4.2)。中安裝和Logstash 5.4配置OpsGenie Logstash插件

按照OpsGenie instructions,一個具有運行:

bin/plugin install logstash-output-opsgenie 

這Logstash 5.4should 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輸出插件?

回答

1

在上Logstash部的OpsGenie instructions配置有另一個鏈接,其引導到OpsGenie's Logstash plugin。在該頁面有安裝插件,它是

gem install logstash-output-opsgenie 

如果這OpsGenie的插件依賴於再運行此命令的其他logstash包將安裝該插件的命令。在此之後,目錄更改爲它logstash中,然後運行

bin/logstash-plugin install logstash-output-opsgenie