-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filebeat: add docker image name field to journald input #40450
filebeat: add docker image name field to journald input #40450
Conversation
Since commit [5f7e102](moby/moby@5f7e102) in moby/moby, the `IMAGE_NAME` field is added to Docker log messages sent to journald. This was previously undocumented in Docker, which is changed by [69a143d](docker/docs@69a143d). This adds a translation for the field to Filebeat. Additionally, the documentation for the `container.log.tag` translation is fixed. Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
💚 CLA has been signed |
The PR template asks to add labels, but I'm unable to do so. |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Thanks for the PR @msanft! It looks great! I've just merged some changes to the file you edited, I'll merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog entry is missing, could you add one in CHANGELOG.next.asciidoc
?
Since commit [5f7e102](moby/moby@5f7e102) in moby/moby, the `IMAGE_NAME` field is added to Docker log messages sent to journald. This was previously undocumented in Docker, which is changed by [69a143d](docker/docs@69a143d). This adds a translation for the field to Filebeat. Additionally, the documentation for the `container.log.tag` translation is fixed. Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
Thanks for the review @belimawr! |
/test |
run docs-build |
@@ -284,7 +284,8 @@ available: | |||
`CONTAINER_ID_FULL`:: `container.id` | |||
`CONTAINER_NAME`:: `container.name` | |||
`CONTAINER_PARTIAL_MESSAGE`:: `container.partial` | |||
`CONTAINER_TAG`:: `container.image.tag` | |||
`CONTAINER_TAG`:: `container.log.tag` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be sure to understand, what is the reason to switch from container.image.tag
to container.log.tag
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a matter of correcting the docs. The actual field is called container.log.tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense thanks for the explanation!
Looks good to be merged then!
Proposed commit message
Since commit 5f7e102 in moby/moby, the
IMAGE_NAME
field is added to Docker log messages sent to journald. This was previously undocumented in Docker, which is changed by 69a143d. This adds a translation for the field to Filebeat.Additionally, the documentation for the
container.log.tag
translation is fixed.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.