# Get "Connection refused" error when I tried "Setting Up an Advanced Logstash Pipeline"

**URL:** <https://discuss.elastic.co/t/get-connection-refused-error-when-i-tried-setting-up-an-advanced-logstash-pipeline/53383>\
**Category:** Logstash\
**Created:** [June 20, 2016, 11:50pm UTC](https://discuss.elastic.co/t/get-connection-refused-error-when-i-tried-setting-up-an-advanced-logstash-pipeline/53383 "2016-06-20T23:50:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kris-Li-lqx](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@Kris-Li-lqx](https://discuss.elastic.co/u/Kris-Li-lqx)\
**Post date:** [June 20, 2016, 11:50pm UTC](https://discuss.elastic.co/t/get-connection-refused-error-when-i-tried-setting-up-an-advanced-logstash-pipeline/53383/1 "2016-06-20T23:50:05Z")

</div>

Hey guys, I'm following the tutorial but encountered an error saying :  
**Connection refused {:class=\>"Manticore::SocketException", :level=\>:error} for "Setting Up an Advanced Logstash Pipeline".**

I just followed the official tutorial ([https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html#indexing-parsed-data-into-elasticsearch](https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html#indexing-parsed-data-into-elasticsearch)).

And here is my config file:

input {  
file {  
path =\> "MYPATH/logstash-2.3.3/logstash-tutorial-dataset.config"  
start\_position =\> beginning  
ignore\_older =\> 0  
}  
}

filter {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}"}  
}  
geoip {  
source =\> "clientip"  
}  
}

output {  
elasticsearch {}  
stdout {}  
}

If I delete "elasticsearch {}", the error disappears but still I can't observe any output. I tried it on two machines but with the same problem. And I'm developing on Ubuntu FYI.

Do somebody had the same problem before or know how to take care of it? Thanks you so much!!!!!

---

<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:** [June 21, 2016, 5:56am UTC](https://discuss.elastic.co/t/get-connection-refused-error-when-i-tried-setting-up-an-advanced-logstash-pipeline/53383/2 "2016-06-21T05:56:15Z")

</div>

Is Elasticsearch running on the machine?

---

<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, 4:51am UTC](https://discuss.elastic.co/t/get-connection-refused-error-when-i-tried-setting-up-an-advanced-logstash-pipeline/53383/3 "2017-07-06T04:51:38Z")

</div>


