简体   繁体   中英

Logstash - Offline Plugin Installation

I have tried searching on various internet forums about the offline installation of Logstash plugins, but haven't found the solution that we can implement.

What I want to achieve is: Install the following two logstash plugins:

logstash-filter-mutate-master
logstash-filter-aggregate-master

My Limitations Are: At my company, there is strictly no Internet connectivity on Linux servers. Therefore, I need a solution where I could download some off-the-shelf package on my Windows machine, and then unpack it on the Linux machine, which would install the plugins I require.

I have looked at the Logstash documentation , which advises on how to install plugins offline, but that also needs a 'Staging' server which has logstash source-code and has Internet connectivity - the latter is non-existent in my organisation.

I would greatly appreciate if you could advise how to approach this. At present, when I try to install the 'mutate' plugin, here's the error I see:

$ bin/logstash-plugin install --local --no-verify
Installing...

Plugin not found, aborting

ERROR: Installation Aborted, message: Could not find gem 'ci_reporter_rspec (>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.

Thank you.

If you want to install a logstash plugin in offline. First way ; You must change gemfile in logstash directory. As an example, download plugin source in somewhere of your logstash directory then modify gemfile in logstash directory with plugin name and path.

gem "logstash-input-example-plugin", :path => "./plugins/logstash-input-example-plugin"

After that just run the below command

bin/logstash-plugin install --no-verify

You can follow this link :

https://www.tutorialspoint.com/logstash/logstash_plugins.htm

Second way; using with gem file of the plugin. As an example;

bin/logstash-plugin install /path/to/logstash-output-kafka-1.0.0.gem

You can follow this link :

https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM