文章出處

我們單位的服務器位于隔離區,不允許鏈接互聯網,因此整理了在ELK集群上離線安裝Logstash的jdbc input插件的方法,供大家參考。

總體思路是需要一臺中轉的機器,這臺機器需要能夠訪問互聯網,先在這臺機器中將需要安裝的插件及依賴包制作成離線安裝包,然后再拷貝到生產機器上安裝。

打包

打包前的注意事項
1、確保需要打包的插件及其依賴插件都已經安裝在中轉機器上
2、執行./logstash-plugin prepare-offline-pack logstash-input-jdbc來打包

打包命令支持通配符,如下都是可以的

bin/logstash-plugin prepare-offline-pack logstash-input-jdbc 
bin/logstash-plugin prepare-offline-pack logstash-input-* 
bin/logstash-plugin prepare-offline-pack logstash-output-* logstash-input-jdbc

安裝

1、下載打包好的文件,通過你最方便的方式上傳到生產設備中,記住存放的目錄和文件名,例如這里為logstash-input-plugins-5.5.1.zip
2、執行bin/logstash-plugin install命令進行安裝

在Windows下

bin/logstash-plugin.bat install file:///c:/path/to/logstash-input-plugins-5.5.1.zip

在Linux下

bin/logstash-plugin install file:///path/to/logstash-offline-input-5.5.1.zip

本文所用的版本為 Logstash 5.5.1。

參考資料:
1、Offline Plugin Management


文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()