Fix docker provider add_fields processors#33269
Merged
belimawr merged 1 commit intoelastic:7.17from Oct 13, 2022
Merged
Conversation
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
8 tasks
e991e14 to
7411d71
Compare
Contributor
Contributor
Author
|
/package |
Contributor
Author
|
/test |
2 similar comments
Contributor
Author
|
/test |
Contributor
Author
|
/test |
7411d71 to
751eb6a
Compare
The Docker provider was using a wrong key when defining the
`add_fields` processor, this causes Filebeat not to start the input
and stay on a unhealthy state. This processor seems to be defined
every time a variable like `${docker}` is used on a input
configuration.
This commig fixes it.
751eb6a to
46238f3
Compare
cmacknz
approved these changes
Oct 12, 2022
Contributor
Author
|
I'll merge this because only the e2e tests are failing and they're know to be flaky. |
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.
This is a backport PR for: elastic/elastic-agent#1420
What does this PR do?
The Docker provider was using a wrong key when defining the
add_fieldsprocessor, this causes Filebeat not to start the input and stay on a unhealthy state. This processor seems to be defined every time a variable like${docker}is used on a input configuration.This commit fixes it.
Why is it important?
It fixes a bug on Docker auto discovery provider
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
docker run --rm --name flog -d mingrammer/flog /bin/flog -s1 -d1 -l -f rfc3164)./var/lib/docker/containers/${docker.container.id}/*-json.log./tmp/elastic-agent.yml), adjust the Elasticsearch credentials as needed./var/lib/docker/*):Related issues
## Use cases## Screenshots## Logs