[9.4](backport #51772) filebeat kafka input: add group_instance_id for static group membership#51886
Merged
Merged
Conversation
…ip (#51772) * filebeat kafka input: add group_instance_id for static group membership The Kafka input now has a `group_instance_id` option wiring it to Consumer.Group.InstanceId (KIP-345): a member that rejoins within `session_timeout` keeps its partitions instead of rebalancing. Static membership needs Kafka `version` >= 2.3.0, so the input fails fast with a clear error when it is set on the default 2.1.0. Unset by default; existing configs are unaffected. Assisted-By: Claude Code (cherry picked from commit 6811ebc)
6 tasks
Contributor
🤖 GitHub commentsJust comment with:
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Contributor
🔍 Preview links for changed docs |
Contributor
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
AndersonQ
approved these changes
Jul 13, 2026
vishaangelova
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
./changelog/fragmentsusing the changelog tool.Disruptive User Impact
None by default — the option is opt-in and unset out of the box; existing
configurations are unchanged. When enabled, operators should be aware:
versionmust be >= 2.3.0; otherwise the input fails fast with a clearerror.
group_idmust use a uniquegroup_instance_id.reassigned until
session_timeoutexpires — that is the intended trade-off;tune
session_timeoutaccordingly.How to test this PR locally
Unit tests:
Friendly version gate (no broker needed) — configure the input with
group_instance_idset butversionleft at the default and confirm startupfails with
group_instance_id requires 'version' >= 2.3.0 ....End-to-end (optional, needs a broker >= 2.3.0): run two Filebeat instances that
share a
group_id, each with a distinctgroup_instance_idandversion: "2.3.0";restart one instance and confirm the group does not rebalance within
session_timeout(no partition reassignment in the broker logs).Related issues
group_instance_id, KIP-345) #51768Use cases
Multi-replica, containerized Filebeat consuming a high-throughput Kafka topic.
Setting a stable per-instance
group_instance_idlets rolling restarts completewithout cascading rebalances, keeping consumption steady.
This is an automatic backport of pull request #51772 done by Mergify.