# Logstash-2.2.2 Related Error

**URL:** <https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788>\
**Category:** Logstash\
**Created:** [March 8, 2016, 2:59pm UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788 "2016-03-08T14:59:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shrawan\_Bhagwat](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Shrawan\_Bhagwat](https://discuss.elastic.co/u/Shrawan_Bhagwat)\
**Post date:** [March 8, 2016, 2:59pm UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/1 "2016-03-08T14:59:34Z")

</div>

Hi All,

I am getting below mentioned error while running logstash-2.2.2.

:message=\>"Connection refused", :class=\>"Manticore::SocketException", :level=\>:error

I have tried the solutions that were previously discussed on this group.

Please help.

Regards,  
Shrawan

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 8, 2016, 3:35pm UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/2 "2016-03-08T15:35:08Z")

</div>

Assuming the problem is with the elasticsearch output, the problem is pretty clear: Logstash couldn't connect to ES because nothing was listenting on that port. Can you connect with e.g. curl or telnet from the Logstash machine? Have you checked that the plugin configuration is correct (both host and port)?

---

<div class="post-metadata">

**Author:** ![Shrawan\_Bhagwat](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Shrawan\_Bhagwat](https://discuss.elastic.co/u/Shrawan_Bhagwat)\
**Post date:** [March 9, 2016, 6:05am UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/3 "2016-03-09T06:05:58Z")

</div>

Hi Magnus,

I have tried that, and it's connecting properly with host. 🙂  
I have also made proper plugin configuration.

Please guide.

Please Regards,  
Shrawan

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 9, 2016, 6:25am UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/4 "2016-03-09T06:25:36Z")

</div>

Standard debugging advice applies to figure out what's going on.

- Increase Logstash's logging verbosity. Maybe you're not using the configuration you think you're using?
- Use Wireshark to trace the network traffic.
- Use strace to pry into what the Logstash process is doing.

---

<div class="post-metadata">

**Author:** ![Shrawan\_Bhagwat](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Shrawan\_Bhagwat](https://discuss.elastic.co/u/Shrawan_Bhagwat)\
**Post date:** [March 10, 2016, 11:53am UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/5 "2016-03-10T11:53:42Z")

</div>

Hi Magnus,

this is my config file. when i am running config test for it, in that it's giving  
:message=\>"Connection refused", :class=\>"Manticore::SocketException", :level=\>:error  
configuration OK.

input {  
file {  
path =\> "/MARSLMS/LMS\_Kibana/Logstash/logstash.log"  
start\_position =\> beginning  
ignore\_older =\> 0  
# type =\> "Application Server Log"  
}  
}

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
}

```
file {
    path => "/MARSLMS/LMS_Kibana/result.log"

}

```

}

Can you please tell me what should i check further for this error message?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 10, 2016, 12:38pm UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/6 "2016-03-10T12:38:16Z")

</div>

I gave you a list of three suggestions. Are they unclear?

---

<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:** [July 6, 2017, 5:07am UTC](https://discuss.elastic.co/t/logstash-2-2-2-related-error/43788/7 "2017-07-06T05:07:35Z")

</div>


