I'm trying to install the memorize plugin for Logstash on Ubuntu 14.04. The problem is that my Logstash server is connected through a proxy. So when using the normal
bin/logstash-plugin install logstash-filter-memorize command I get the error
Unable to download data from https://rubygems.org - SocketError: initialize: name or service not known (https://rubygems.org/latest_specs.4.8.gz). I have tried to use the following commands:
export http_proxy=http://user:password@host:port export https_proxy=http://user:password@host:port
As described in https://github.com/elastic/logstash/issues/3314 but I still got the same error. I downloaded the gem file and tried to install it locally as described in https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html#installing-local-plugins but I got the following error:
Error Bundler::InstallError, retrying 1/10 An error occurred while installing logstash-core-event-java (5.0.0), and Bundler cannot continue. Make sure that `gem install logstash-core-event-java -v '5.0.0'` succeeds before bundling.
I have tried to run the command
gem install logstash-core-event-java -v '5.0.0' and it ran successfully but when trying to install the plugin I still got the same error.
sudo update-ca-certificates -f didn't help either.
Any insights on this?