I want to install a Stormshield plugin for Logstash
I tried
bin/logstash-plugin install --no-verify logstash-filter-SNS
I have "ERROR : Something went wrong when installalling bin/logstash-filter-SNS , message socket closed
I tried to install plugin with offline method with gem build
gem build XXX.gemspec => work
But when I launch : bin/logstash-plugin install --no-verify XXX.gem
Same error : Socket closed
I tried to install by following the official doc and I have an URI error
I don't think that will work. logstash-plugin is interpreted Ruby code, and does not use log4j. But since it is interpreted Ruby you can just add puts calls wherever you want.
If you run DEBUG=1 bin/logstash-plugin install --no-verify logstash-filter-SNS you may get a few extra messages but I doubt it will help.
Not sure is the plugin supported on 8.x platform. The release is for Logstash: 6.8.2.
I would:
Try to install as Badger suggested, and figure out from LS logs or journalctl is there any possible trace, do not spend more then 1h hour on this since Badge is not optimistic.
There is email contact for Labo SVC at the bottom of github link, you might ask for advice
Make a test conf just with syslog input, without filtering to see will you receive messages.
If is not working, which is possible, but maaaaaaybe LS 8.x has something improved in syslog plugin.
I personally didn't have experience with this quite specific plugin, not yet. However I can provide an advice.
The code for the pluginmanager is in ${LOGSTASH_HOME}/lib/pluginmanager. It is .rb files that you can edit. It already has some puts calls. You can add more to try to follow the flow and see where the error is occuring. If you are not used to programming in ruby it will not be easy.
Leandro, I have already asked is there a proxy. No, there is no proxy. It's good idea to try with some other plugin just to test since this plugin is supported for 6.8.
If there is no internet connection, then will need to install in offline mode if is supported for this plugin.
The issue of the error in your linked post is a network issue, the OP clearly specifies that he is on a corporate environment and probably has something interfering in its connnection.
I've made a recommendation in the same post to create a offline package on another machine.
Where are you trying to install it, are you in your home pc or are you in your work PC or a server in your company?
That's why I asked if you may have a firewall in your network that could be impacting your connection.
Keep in mind that you do not need to be using a proxy and can have a working internet connection and at the same time have a firewall in your network that could cause issues like this.
There is not much to troubleshoot, the socket closed error heavily suggests a network issue.
My environment is a server behind a firewall with no proxy.
I don't have any logs on my firewall showing a blocked packet. However, I tested the installation with the offline method and I have the same problem.
That's why, I started to install Logstash Server on a Vmware station environment to test it, install the plugin with another connection and import it on my Vcenter.
I couldn't find any other solution...
The real question is: Why the same error with offline installation ?
How do you test it? For the offline method to work you need to have the desired plugin already installed, if you tried to create a offline package in the same machine where you can't install the package it won't work because you do not have the package in the machine.
You need to do this in a complete different machine where you are able to install the plugin, probably an machine outside your environment.
So you have a firewall in the end and even withtout a log showing a block this could be your issue.
For example, if your firewall is inspecting the ssl packages it may be opening the ssl connections and replacing the certificate, this could create an issue similar to yours.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.