# Connection refused for logstash configuration file

**URL:** <https://discuss.elastic.co/t/connection-refused-for-logstash-configuration-file/54307>\
**Category:** Logstash\
**Created:** [June 29, 2016, 3:49pm UTC](https://discuss.elastic.co/t/connection-refused-for-logstash-configuration-file/54307 "2016-06-29T15:49:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_soong](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@a\_soong](https://discuss.elastic.co/u/a_soong)\
**Post date:** [June 29, 2016, 3:49pm UTC](https://discuss.elastic.co/t/connection-refused-for-logstash-configuration-file/54307/1 "2016-06-29T15:49:13Z")

</div>

input {  
file {  
path =\> "H:\logstash\zipped\_folders\logstash-2.3.1\bin\first-pipeline-data"  
start\_position =\> beginning #1  
#ignore\_older =\> 0  
}  
}

filter {  
grok { # Grok looks for patterns in incoming log data  
match =\> {"message" =\> "%{COMBINEDAPACHELOG}"}  
}

```
geoip { # geoip plugin looks up IP addr, derive geo location and adds to logs
	source => "clientip"
}

```

}

output {  
elasticsearch{}  
stdout{}  
}  
#1 default behavious of file input plugin is to monitor a file for new info  
#2 default behaviour of file input plugin is to ignore files whose last modification greater than 86400s

# path =\> H:\logstash\zipped\_folders\logstash-2.3.1\bin\first-pipeline.conf

this is the configuration file I used for logstash. when I run the command 'logstash -f firstpipeline.conf' I get the error connection refused: connect {:class=\>"Manticore::SocketException", :level:error}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 30, 2016, 3:01am UTC](https://discuss.elastic.co/t/connection-refused-for-logstash-configuration-file/54307/2 "2016-06-30T03:01:57Z")

</div>

Is ES running, can you `curl locahost:9200` and get a response?

---

<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:50am UTC](https://discuss.elastic.co/t/connection-refused-for-logstash-configuration-file/54307/3 "2017-07-06T04:50:17Z")

</div>


