The Logstash plugin manager provides support for preparing offline plugin packs that you can use to install Logstash plugins on systems that don’t have Internet access.
This procedure requires a staging machine running Logstash that has access to a public or private Rubygems server. The staging machine downloads and packages all the files and dependencies required for offline installation.
for latest version:
https://www.elastic.co/downloads/logstash-oss
for version 7.17.9 (currently used):
RPM:
curl https://artifacts.elastic.co/downloads/logstash/logstash-oss-7.17.9-x86_64.rpm --output logstash-oss-7.17.9-x86_64.rpm
or
DEB:
curl https://artifacts.elastic.co/downloads/logstash/logstash-oss-7.17.9-amd64.deb --output logstash-oss-7.17.9-amd64.deb
RPM:
sudo yum install -y logstash-oss-7.17.9-x86_64.rpm
or
DEB:
sudo apt install -y $PWD/logstash-oss-7.17.9-amd64.deb
for latest version:
https://rubygems.org/gems/logstash-output-opensearch
for version 1.2.0 (currently used):
curl https://rubygems.org/downloads/logstash-output-opensearch-1.2.0-java.gem --output logstash-output-opensearch-1.2.0-java.gem
/usr/share/logstash/bin/logstash-plugin install $PWD/logstash-output-opensearch-1.2.0-java.gem
Run the bin/logstash-plugin prepare-offline-pack
subcommand to package the plugins and dependencies:
/usr/share/logstash/bin/logstash-plugin prepare-offline-pack --output $PWD/logstash-output-plugin-offline-7.17.9.zip logstash-output-opensearch
Run the bin/logstash-plugin install
subcommand and pass in the file URI of the offline plugin pack:
/usr/share/logstash/bin/logstash-plugin install file:$PWD/logstash-output-plugin-offline-7.17.9.zip