# Logstash plugin install : Error socket closed

**URL:** <https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243>\
**Category:** Logstash\
**Created:** [March 22, 2023, 12:14pm UTC](https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243 "2023-03-22T12:14:45Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Julien069](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Julien069](https://discuss.elastic.co/u/Julien069)\
**Post date:** [March 29, 2023, 7:32pm UTC](https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243/21 "2023-03-29T19:32:27Z")

</div>

Ok ,I have read and do that , but it doestn't work for me .  
I used this for download plugin : [search | RubyGems.org | your community gem host](https://rubygems.org/search?query=logstash-filter-sns)

I tried , I administer the FW and I don't have any filter for my server .  
It's work with another connexion so .. the problem is the FW but I don't see anything 🙂

A question, when I launch Logstash, it tells me that it cannot find the configuration file which is in /etc/logstash/logstash.yml.  
I had to force it with the -f option..  
How can I fix this?

---

<div class="post-metadata">

**Author:** ![jba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jba/32/118482_2.png) [@jba](https://discuss.elastic.co/u/jba)\
**Post date:** [March 30, 2023, 9:04pm UTC](https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243/22 "2023-03-30T21:04:46Z")

</div>

Since the Ruby code is interpreted by JRuby, a Ruby interpreter written in Java, you can use various Java run-time options to do some serious debugging. Try starting the logstash-plugin utility like this:

```auto
$ export DEBUG=1
$ export LS_JAVA_OPTS="-Djavax.net.debug=all"
$ bin/logstash-plugin install --no-verify logstash-filter-SNS

```

Maybe take a look if you have other, similar Java options defined in /etc/default/logstash, /etc/logstash/startup.options, /etc/systemd/...../logstash-something and add them to the LS\_JAVA\_OPTS variable.

For more information on the javax.net.debug option, look here: [Using java -Djavax.net.debug=… to examine data flows, including TLS – ColinPaice](https://colinpaice.blog/2020/04/05/using-java-djavax-net-debug-to-examine-data-flows-including-tls/)

---

<div class="post-metadata">

**Author:** ![Julien069](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Julien069](https://discuss.elastic.co/u/Julien069)\
**Post date:** [April 12, 2023, 7:50am UTC](https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243/23 "2023-04-12T07:50:09Z")

</div>

I think that the problem come from my firewall .  
I didn't have any block message but I think that the NAT is not supported .

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2023, 7:50am UTC](https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243/24 "2023-05-10T07:50:19Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/logstash-plugin-install-error-socket-closed/328243.md?page=1)
