-
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
[Metricbeat] Copy k8s.event.message to message field for ECS #10284
Conversation
The field is not renamed as inside k8s it is used as keyword field and not as text. To keep this the field is copied over.
@@ -24,6 +24,7 @@ | |||
type: keyword | |||
description: > | |||
Message recorded for the given event | |||
copy_to: message |
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.
Why copy_to
and not renaming the field?
Can these messages wrap another message from a container?
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 part I was concerned here is that it's keyword and might be also used in other ways. @exekias will know more here.
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.
Ah right. Hence why I thought we should make everything keyword
(and add mf message.text
) ;-)
But this works
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.
Still think message
as text
was a good call ;-)
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.
LGTM, agree with copy_to
for this
The field is not renamed as inside k8s it is used as keyword field and not as text. To keep this the field is copied over.