Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Allow configuring the Elasticsearch output's timeouts and retry strategy #151

@cmacknz

Description

@cmacknz

Add support for configuring retry and timeout parameters in the Elasticsearch output.

Using the existing Elasticsearch output error and retry parameters as a guide, we should allow configuring the following parameters:

  • The maximum number of retries before giving up on an event. See max_retries. Default to infinite_retry to match the behaviour of Filebeat.
  • The retry backoff algorithm parameters. The Beats output exposes backoff.init and backoff.max.
  • The HTTP timeout used for the Elasticsearch client. See timeout.
  • The set of HTTP status codes that are considered retryable. This maps to the RetryOnStatus parameter in the go-elasticsearch client configuration.

These parameters must be mapped to the appropriate fields in the go-elasticsearch client configuration: https://pkg.go.dev/github.com/elastic/go-elasticsearch/v8#Config

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions