Unable to install the elapsed plugin on windows

Continuing the discussion from Query to access distinct fields from different documents:

I'm trying to install the logstash elapsed plugin on windows 7.

I ran the code C:\ELK\logstash-5.2.0\bin>logstash-plugin.bat install --no-verify logstash-filter-elapsed and got the error :

Installing logstash-filter-elapsed
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from https://rubygems.org/

I then downloaded the plugin from https://rubygems.org/gems/logstash-filter-elapsed/versions/4.0.0

I tried installing the plugin directly offline using the command:

C:\ELK\logstash-5.2.0\bin>logstash-plugin.bat install c:/logstash-filter-elapsed-4.0.0.gem

I again end up getting a different error:

Validating c:/logstash-filter-elapsed-4.0.0.gem
Installing logstash-filter-elapsed
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.2.0), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.2.0'` succeeds before bundling.
Error Bundler::InstallError, retrying 2/10
An error occurred while installing logstash-core-event-java (5.2.0), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.2.0'` succeeds before bundling.

Do you access the web via a proxy that you need to tell logstash-plugin to use?

@magnusbaeck Yes, I access the web via a proxy. I use an automatic configuration script. But I don't know how to bypass the proxy to enable the plugin installation.

Logstash doesn't use your configuration script. I'd say the problem is that it's not using the proxy and that you have to tell it which proxy server to use. See the documentation.

Do I need to specify the proxy server for the offline installation as well?

Not sure, but it won't hurt.

Thanks

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