retry_non_idempotent in Logstash Http output

282 Views Asked by At

I am using the default settings [1] with the following config

        http {
            format=>"message"
            http_method=>"post"
            url=>"xxx"
            message=>'xxx'
        }

Which

retry_failed = true
automatic_retries = 1
retry_non_idempotent = false

I found that the failed POST request is being retried infinitely. Is my understanding correct?

[1] https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html

1

There are 1 best solutions below

0
On

There are two levels of retry in the http output. The automatic_retries and retry_non_idempotent options control retries inside the Manticore client that the http_client mixin wraps. The retry_failed option controls retries in the http output itself.

If you set retry_failed to false then the Manticore client will still do automatic_retries, but the http output will not loop forever.