logstash安裝log4j插件

input加入log4j插件啓動報如下錯誤

[2019-11-07T16:25:57,709][ERROR][logstash.plugins.registry] Tried to load a plugin's code, but failed. {:exception=>#<LoadError: no such file to load -- logstash/inputs/log4j>, :path=>"logstash/inputs/log4j", :type=>"input", :name=>"log4j"}
[2019-11-07T16:25:57,724][ERROR][logstash.agent           ] Failed to execute action {:action=>LogStash::PipelineAction:

加載log4j插件失敗???

去到bin目錄下面執行./logstash-plugin list

發現插件列表還真沒有logstash-input-log4j插件

那麼接下來安裝logstash-input-log4j插件

方法一:

如下,非常慢我起碼等了5分鐘+

方法二:

到這來 https://rubygems.org/

搜索log4j

把下載的gem文件rz到bin目錄下面

執行./logstash-plugin install logstash-input-log4j-0.1.2.gem

要安裝git,我機器上沒有裝,那我就不演示了,因爲第一種方法幫我安裝好了,大家自行嘗試吧,

可以的話到評論裏說下

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章