4

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

Ryan
  • 10,041
  • 27
  • 91
  • 156

1 Answers1

0

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.

Badger
  • 3,943
  • 2
  • 6
  • 17