Skip to content

update kafka_log compatibility#18784

Open
stefans-elastic wants to merge 2 commits intoelastic:mainfrom
stefans-elastic:kafka_log-compatibility-update
Open

update kafka_log compatibility#18784
stefans-elastic wants to merge 2 commits intoelastic:mainfrom
stefans-elastic:kafka_log-compatibility-update

Conversation

@stefans-elastic
Copy link
Copy Markdown
Contributor

Proposed commit message

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@stefans-elastic stefans-elastic requested a review from a team as a code owner May 4, 2026 12:43
@stefans-elastic stefans-elastic added enhancement New feature or request Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels May 4, 2026
Comment thread packages/kafka_log/changelog.yml
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

✅ Vale Linting Results

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.

@stefans-elastic stefans-elastic added the documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. label May 4, 2026
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

### Compatibility

This integration is intended for Kafka clusters where brokers speak the standard Kafka protocol. It is tested and supported for Kafka broker versions roughly between **0.11** and **2.8.0**. Earlier or later brokers can work but are not guaranteed.
This integration is intended for Kafka clusters where brokers speak the standard Kafka protocol. It is tested and supported for Kafka broker versions roughly between **0.11** and **4.0.0**. Earlier or later brokers can work but are not guaranteed.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Has this version support been tested.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes

Summary: kafka_log package compatibility with Kafka 3.x and 4.x

Short answer: Yes — the kafka_log integration supports both Kafka 3.x and Kafka 4.x, tested against Elastic Stack 9.1–9.3.

Kafka 3.x

Full support across all tested configurations, both consensus modes, no caveats.

Kafka version Mode Elastic Stack Result
3.0.0 ZooKeeper 9.1.10, 9.2.7, 9.3.2 32/32 docs, no errors
3.6.2 ZooKeeper 9.1.10, 9.2.7, 9.3.0 32/32 docs, no errors
3.6.2 KRaft 9.1.10, 9.2.7, 9.3.0 32/32 docs, no errors

Kafka 4.x

Supported on all tested Elastic Stack versions (KRaft only, as ZooKeeper was removed in Kafka 4.0), but with a caveat around the explicit version field in the integration config:

Kafka version Mode Elastic Stack Result
4.0.0 KRaft 9.1.10 32/32 docs — version field must be left blank
4.0.0 KRaft 9.2.7 32/32 docs — explicit "4.0.0" works
4.0.0 KRaft 9.3.3 32/32 docs — explicit "4.0.0" works

Version field caveat (root cause: sarama client update in elastic/beats#49307):

  • 9.1.x: always leave blank — fix was not backported
  • 9.2.x: leave blank on releases before 9.2.7; "4.0.0" works from 9.2.7+
  • 9.3.x: leave blank on releases before 9.3.3; "4.0.0" works from 9.3.3+

Leaving the field blank is safe on all versions — the client defaults to protocol 2.1.0, which Kafka 4.0 supports for backward compatibility. Setting "4.0.0" on an unsupported stack
version causes the integration to enter FAILED status.

@andrewkroh andrewkroh added the Integration:kafka_log Custom Kafka Logs label May 4, 2026
@stefans-elastic stefans-elastic requested a review from ishleenk17 May 6, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. enhancement New feature or request Integration:kafka_log Custom Kafka Logs Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants