Offline Logstash install [Unable to download data from]


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

[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/
Validating /home/arethusa/logstash/

Unable to download data from - SocketError: Failed to open TCP connection to (initialize: name or service not known) (

ERROR: Installation aborted, verification failed for /home/arethusa/logstash/

Anyone know how I can fix it?

Thank you.

Have you tried
/usr/share/logstash/bin/logstash-plugin install file:///home/arethusa/logstash/

1 Like
[root@logstash arethusa]# /usr/share/logstash/bin/logstash-plugin install file:///home/arethusa/logstash/

Installing file: /home/arethusa/logstash/
Install successful

Thank you ^^

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