Skip to content

Infinite ingestion retry when batches are too large and using GuaranteedSend #14350

@simitt

Description

@simitt

Elasticsearch returns status code 413 when a bulk request exceeds the size limit. A user can either increase the http.max_content_length in ES or decrease the bulk_max_size in the Beat to overcome such failures.
However, when this error happens and the beat is using a GuaranteedSend publisher method the current implementation can lead to an infinite retry, sending the same request to ES.
This might result in not being able to ingest any more events.

It might be worth exploring to use a special handling for the batch when the request size exceeds a limit, e.g. split it in half.

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