Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install influxdb output plugin offline on logstash system #68

Open
jayannah opened this issue Aug 3, 2017 · 7 comments
Open

Install influxdb output plugin offline on logstash system #68

jayannah opened this issue Aug 3, 2017 · 7 comments

Comments

@jayannah
Copy link

jayannah commented Aug 3, 2017

logstash - 5.4.0

Is it possible to provide .zip file to install the influxdb output plugin offline? would like to install couple of plugins without going to internet and download during installation of logstash through automation.

hence if there is .zip file (like s3 repositor or x-pack plugin), it will be great place them in local repository and install offline during installation of logstash .

@IngaFeick
Copy link
Collaborator

IngaFeick commented Aug 3, 2017

I haven't tested this myself but I would assume that you can just download the gem file from rubygems and then instead of running

logstash-plugin install logstash-output-influxdb

you would do

logstash-plugin install /path/to/the/gem/that/you/downloaded.gem

@jayannah
Copy link
Author

jayannah commented Aug 3, 2017

I have tried with .gem file for other plugins.. the problem again these .gem files will go through internet access to install the dependencies. Not 100% offline like .zip file available for x-pack or s3-repositor from ES.

@IngaFeick
Copy link
Collaborator

Good point. I haven't thought of those. Well, I am sorry, I am not aware of another mechanism for installation but maybe somebody else has an idea?

@Kniyl
Copy link

Kniyl commented Oct 30, 2017

@jayannah You should follow the instructions in logstash documentation: https://www.elastic.co/guide/en/logstash/current/offline-plugins.html

Basically, you need to install the plugin on one machine using the "normal" way (through the internet) like bin/logstash-plugin install logstash-output-influxdb and then ask logstash to create an offline package (aka the zip file you are looking for) with bin/logstash-plugin prepare-offline-pack --output <path_to_the_file>.zip logstash-output-influxdb --overwrite.

@kjetilhp
Copy link

The offline method does not work with this plugin for some reason, it still tries to go online and do verification, the --no-verify flag does do any good either (tried on logstash-6.2.3)

sudo ./logstash-plugin install influx-plugin.zip --no-verify --local
Validating influx-plugin.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 influx-plugin.zip

@Ultimation
Copy link
Contributor

Ultimation commented May 21, 2018

@kjetilhp I have had this plugin working with a successful offline plugin as @Kniyl said, you need to build the offline pack on a online system, and then build the zip, and then install it with
bin/logstash-plugin install file:///path/to/logstash-offline-pack-6.2.3.zip

@kjetilhp
Copy link

Hi, I'm sorry for not updating, it was my bad, I forgot to use the full local path when installing. Can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants