Unable to install beats plugin for logstash

Hi,

I am trying to install ELK module on a test environment.

Windows Server 2008 R2 -x64 box

I have successfully installed Elasticsearch, kibana and Logstash along with filebeat and winlogbeat as well.. Everything is working fine. But I am unable to install the plugin for beats in logstash.

So, as of now, I am using the beats to send the files to elastic search. I am not able to use the logstash

The error is as follows:

E:\ELK\Products\logstash-2.3.1\logstash-2.3.1\bin>plugin install logstash-input-beats
"The use of bin/plugin is deprecated and will be removed in a feature release. Please use bin/logstash-plugin."
io/console not supported; tty will not be manipulated
Validating logstash-input-beats
Unable to download data from https://rubygems.org - Errno::ECONNREFUSED: Connection refused - Connection refused (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-input-beats

Can some one help ? I have seen other posts where the same issue has been faced by others. But I could not find a solution being mentioned there.

Thanks in Advance.

Either rubygems.org had an outage when you tried this or you have a firewall that's blocking the traffic. Perhaps you need to route the HTTP traffic via a proxy?

As your question has nothing to do with the deprecated logstash-forwarder product you may want to edit your post and move it to the Logstash category.

Hi,

Thanks for the info.

I tried again and I still face the same issue. How to route the traffic via http proxy ?

Hi,

I downloaded logstash all plugins zip file directly from the website and it did not have the necessity to install the plugins separately.

However, if you are still interested, please let me know how to route the traffic via http proxy. ?

TIA

I would be very interested in learning how to do this. I have an HTTP proxy, but it is not great and would prefer to be able to install this plugin offline.

  1. you have to set the JRUBY_OPTS for logstah-plugin to use the proxy
  2. you have to set http_proxy and https_proxy for Ruby Gem (which is apparently called by logstash-plugin)
  3. and you have to set JARS_SKIP='true' also (for Ruby Gem?) for the installation to work

export http_proxy=http://proxy.server:3128 export https_proxy=http://proxy.server:3128 export JRUBY_OPTS="-J-Dhttp.proxyHost=proxy.host -J-Dhttp.proxyPort=3128"

And then run the bin as follow:
DEBUG=1 JARS_SKIP='true' /usr/share/logstash/bin/logstash-plugin install logstash-input-beats**

It's really comfortable working like this.