Skip to content

Make ecs.version configurable - #429

Open
mvitz wants to merge 1 commit into
elastic:mainfrom
mvitz:configurable-ecs-version
Open

mvitz wants to merge 1 commit into
elastic:mainfrom
mvitz:configurable-ecs-version

Conversation

@mvitz

@mvitz mvitz commented Oct 8, 2026

Copy link
Copy Markdown

This allows to override the ecs.version which is present in every log event and currently is set to a fixed version of 1.2.0 which is pretty old.

To preserve backwards compatibility I left the old method within EcsJsonSerializer although it is no longer called from within the library itself.

Fixes #289

@mvitz
mvitz requested a review from a team as a code owner October 8, 2026 10:22
@github-actions github-actions Bot added agent-java community Issues and PRs created by the community triage Issues and PRs that need to be triaged labels Oct 8, 2026
@jackshirazi

Copy link
Copy Markdown
Contributor

Thanks, please add test coverage for custom values, escaping, and preservation of the default behavior. Each new configuration path should ideally test both the default 1.2.0 and a custom ecs.version.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-java community Issues and PRs created by the community triage Issues and PRs that need to be triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ECS Version to 8.x

2 participants