Skip to content

Add bulk_message_request_threshold to ES output plugin#1946

Open
madmecodes wants to merge 2 commits intofluent:masterfrom
madmecodes:feat/es-bulk-message-threshold
Open

Add bulk_message_request_threshold to ES output plugin#1946
madmecodes wants to merge 2 commits intofluent:masterfrom
madmecodes:feat/es-bulk-message-threshold

Conversation

@madmecodes
Copy link
Copy Markdown

Summary

  • Add bulk_message_request_threshold field to the ElasticsearchCommon struct, making it available for both elasticsearch and elasticsearch_data_stream output plugins
  • This allows users to control the max size of bulk requests sent to Elasticsearch, which is needed when an nginx proxy sits in front of ES with a max request body size limit
  • Regenerated CRDs and updated docs

Fixes #1905

Test plan

  • Verify CRD schema includes bulkMessageRequestThreshold under both elasticsearch and elasticsearchDataStream output specs
  • Deploy a ClusterOutput CR with bulkMessageRequestThreshold set and confirm the generated fluentd config contains bulk_message_request_threshold
  • Confirm existing ES output configs without the new field continue to work unchanged

Copilot AI review requested due to automatic review settings May 6, 2026 10:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR exposes Fluentd Elasticsearch output plugin’s bulk_message_request_threshold setting via the Fluent Operator CRDs (for both elasticsearch and elasticsearch_data_stream) and ensures it’s rendered into the generated Fluentd configuration, alongside regenerated CRDs and updated plugin docs.

Changes:

  • Add bulkMessageRequestThreshold to ElasticsearchCommon so it’s available to both ES output variants.
  • Render bulk_message_request_threshold into Fluentd output config when the field is set.
  • Regenerate CRDs/manifests and update Elasticsearch output plugin documentation.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
manifests/setup/setup.yaml Regenerated install manifest schema to include bulkMessageRequestThreshold for ES outputs.
manifests/setup/fluent-operator-crd.yaml Regenerated CRD bundle with the new ES output field.
docs/plugins/fluentd/output/es.md Documents the newly exposed ES output parameter.
config/crd/bases/fluentd.fluent.io_outputs.yaml Regenerated Output CRD schema including the new field.
config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml Regenerated ClusterOutput CRD schema including the new field.
charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml Helm CRDs updated to include the new field.
charts/fluent-operator/crds/fluentd.fluent.io_clusteroutputs.yaml Helm CRDs updated to include the new field.
charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_outputs.yaml Helm templated CRDs updated to include the new field.
charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_clusteroutputs.yaml Helm templated CRDs updated to include the new field.
apis/fluentd/v1alpha1/plugins/output/types.go Adds config rendering for bulk_message_request_threshold.
apis/fluentd/v1alpha1/plugins/output/es.go Adds the API field bulkMessageRequestThreshold to ElasticsearchCommon.

IlmPolicyOverwrite *bool `json:"ilmPolicyOverride,omitempty"`
// Optional, Enable logging of 400 reason without enabling debug log level
LogEs400Reason *bool `json:"logEs400Reason,omitempty"`
// Optional, Configure bulk_message request splitting threshold size.
Comment on lines 396 to 400
params.InsertPairs(parent, "ilm_policy", cmn.IlmPolicy)
params.InsertPairs(parent, "ilm_policy_overwrite", cmn.IlmPolicyOverwrite)
params.InsertPairs(parent, "log_es_400_reason", cmn.LogEs400Reason)
params.InsertPairs(parent, "bulk_message_request_threshold", cmn.BulkMessageRequestThreshold)

@cw-Guo
Copy link
Copy Markdown
Collaborator

cw-Guo commented May 7, 2026

@madmecodes can you help fix the dco issue?

madmecodes added 2 commits May 8, 2026 13:30
Signed-off-by: madmecodes <ayushguptadev1@gmail.com>
Signed-off-by: madmecodes <ayushguptadev1@gmail.com>
@madmecodes madmecodes force-pushed the feat/es-bulk-message-threshold branch from e77c7ca to b4a9b48 Compare May 8, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for bulk_message_request_size in ES output plugin

3 participants