LoginSignup
0
0

More than 3 years have passed since last update.

【logstash】オフライン環境でプラグインインストールする

Posted at

オフラインまたは外部への接続が制限された状態でpluginをインストールする方法についてメモ

プロキシ環境の場合はそもそもhttps://rubygems.org/ へ繋げるように
設定できるのが一番楽だけどそれが出来ないときは以下の方法でインストールする。


1.ローカル環境でlogstashを構築

外部への接続ができるマシンでlogstashを構築し、そこに目当てのプラグインをインストールする。

bin/logstash-plugin install プラグイン名

2.インストール用のパッケージを出力

以下のコマンドでオフライン環境でのインストール用のパッケージ(zip)を生成する

bin/logstash-plugin prepare-offline-pack プラグイン名

3.インストール

インストール用パッケージを対象の環境に配置し以下のコマンドを実行してインストールを行う

bin/logstash-lugin install file://パッケージのファイルパス

参考サイト:
https://www.elastic.co/guide/en/logstash/current/offline-plugins.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0