# Logstash-output-http retry not working

**URL:** <https://discuss.elastic.co/t/logstash-output-http-retry-not-working/72343>\
**Category:** Logstash\
**Created:** [January 20, 2017, 9:26pm UTC](https://discuss.elastic.co/t/logstash-output-http-retry-not-working/72343 "2017-01-20T21:26:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saching](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@saching](https://discuss.elastic.co/u/saching)\
**Post date:** [January 20, 2017, 9:26pm UTC](https://discuss.elastic.co/t/logstash-output-http-retry-not-working/72343/1 "2017-01-20T21:26:22Z")

</div>

output {  
http {  
url =\> "[http://localhost:8080/MyApp/api/test](http://localhost:8080/MyApp/api/test)"  
http\_method =\> "post"  
connect\_timeout =\> 30  
request\_timeout =\> 30  
socket\_timeout =\> 30  
automatic\_retries =\> 3  
}  
}

It fails with error and doesn't retry.  
tested with logstash 2.3.3 and 5.1.1 version  
Connection refused (Connection refused) {:url=\>"[http://localhost:8080/](http://localhost:8080/)....

Any thoughts?

---

<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:** [February 17, 2017, 9:26pm UTC](https://discuss.elastic.co/t/logstash-output-http-retry-not-working/72343/2 "2017-02-17T21:26:31Z")

</div>

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