Offline Logstash install [Unable to download data from https://rubygems.org]

Hello,

I must install logstash and his plugin on offline VM.

First on online VM I do:

Install Java and Logstash

yum install --downloadonly --downloaddir=/home/logstash/ logstash
yum install --downloadonly --downloaddir=/home/java/ java-1.8.0-openjdk-headless.x86_64
yum install java-1.8.0-openjdk-headless.x86_64
yum install logstash

Then the plugins I need:

/usr/share/logstash/bin/logstash-plugin install logstash-output-gelf
/usr/share/logstash/bin/logstash-plugin install logstash-output-file
/usr/share/logstash/bin/logstash-plugin install logstash-input-lumberjack

After I fix path problem:

sudo /usr/share/logstash/bin/system-install /etc/logstash/startup.options systemd

Next I export plugin:

/usr/share/logstash/bin/logstash-plugin prepare-offline-pack logstash-output-gelf logstash-output-file logstash-input-lumberjack

I copy all with Winscp and SSH.

Then on Offline VM I do:

[arethusa@logstash opt]$ cd logstash/
[arethusa@logstash logstash]$ ls
logstash-7.8.1.rpm logstash-offline-plugins-7.8.1.zip

[arethusa@logstash logstash]$ sudo yum install logstash-7.8.1.rpm
[arethusa@logstash logstash]$ sudo systemctrl enable logstash

Then I try to install logstash offline plugins but I have ruby error:

root@logstash arethusa]# /usr/share/logstash/bin/logstash-plugin install /home/arethusa/logstash/logstash-offline-plugins-7.8.1.zip
Validating /home/arethusa/logstash/logstash-offline-plugins-7.8.1.zip

Unable to download data from https://rubygems.org - SocketError: Failed to open TCP connection to rubygems.org:443 (initialize: name or service not known) (https://rubygems.org/latest_specs.4.8.gz)

ERROR: Installation aborted, verification failed for /home/arethusa/logstash/logstash-offline-plugins-7.8.1.zip

Anyone know how I can fix it?

Thank you.

Have you tried
/usr/share/logstash/bin/logstash-plugin install file:///home/arethusa/logstash/logstash-offline-plugins-7.8.1.zip
?

1 Like
[root@logstash arethusa]# /usr/share/logstash/bin/logstash-plugin install file:///home/arethusa/logstash/logstash-offline-plugins-7.8.1.zip

Installing file: /home/arethusa/logstash/logstash-offline-plugins-7.8.1.zip
Install successful

Thank you ^^

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.