# Does not retry failed http output

**URL:** <https://discuss.elastic.co/t/does-not-retry-failed-http-output/93129>\
**Category:** Logstash\
**Created:** [July 14, 2017, 6:54am UTC](https://discuss.elastic.co/t/does-not-retry-failed-http-output/93129 "2017-07-14T06:54:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![giannisapi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giannisapi/32/19360_2.png) [@giannisapi](https://discuss.elastic.co/u/giannisapi)\
**Post date:** [July 14, 2017, 6:54am UTC](https://discuss.elastic.co/t/does-not-retry-failed-http-output/93129/1 "2017-07-14T06:54:49Z")

</div>

Hi All,

I have version of logstash 5.1.1 and it seems that when my application is down, http output does not retry to push the failed messages.

According to my understanding of :

> [@Behaviour with unavailable Gelf output](https://discuss.elastic.co/t/behaviour-with-unavailable-gelf-output/25886):
>
> Hi, how does Logstash behave if a Gelf output is configured but the destination host is temporarily unavailable? Are messages lost, or are they kept in a temporary place until the target Gelf host is available again? I am using logstash 1.3.3 on RHEL 6 (and I cannot switch to a newer version). Thank you.

Logstash input should stop feeding messages to the pipeline as soon as pipeline is full. In my case this does not happen and logstash simply ignores that http output is failing and file input keeps feeding messages.

my configuration is as follows:

input {  
file{  
path =\> "/home/intis/Documents/txt/\*.txt"  
start\_position =\> "beginning"  
max\_open\_files =\> "300"  
close\_older =\> "0.2"  
type =\> "logs"  
sincedb\_path =\> "/dev/null"  
codec =\> plain{ charset =\> 'UTF-8' }  
}  
output {

http {  
http\_method =\> post  
url =\> "[http://localhost:8080/test/txtFiles](http://localhost:8080/test/txtFiles)"  
pool\_max\_per\_route=\>1  
pool\_max=\>1  
automatic\_retries=\>5  
#keepalive=\>false  
#retry\_failed=\>true  
}  
stdout { codec =\> rubydebug }  
}

Thanks in advance,  
giannis

---

<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:** [August 11, 2017, 6:57am UTC](https://discuss.elastic.co/t/does-not-retry-failed-http-output/93129/2 "2017-08-11T06:57:29Z")

</div>

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