-
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
Add .*
to kubernetes labels and annotations in fields.yml mapping
#13226
Conversation
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.
I thought that .*
was appended if needed but it seems that it isn't.
I am ok with adding the wildcard explicitly in any case, once tests pass.
@jsoriano Thanks! What do you think about backporting this? |
It can be a good idea, it will surely do more good than harm. |
…lastic#13226) * Update labels and annotations object field
Still seeing this issue with Metricbeat 7.6.0 {"type":"mapper_parsing_exception","reason":"failed to parse field [kubernetes.labels.statefulset] of type [keyword] in document with id 'HPFwzXABACATvuNpI5wp'. Preview of field's value: '{kubernetes={io/pod-name=elastic-es-hot-0}}'","caused_by":{"type":"illegal_state_exception","reason":"Can't get text on a START_OBJECT at 1:122"}} |
This issue should be fixed by #16834, that will be released in 7.6.2. |
…lastic#13226) (elastic#13284) * Update labels and annotations object field (cherry picked from commit b89ac5e)
…lastic#13226) (elastic#13287) * Update labels and annotations object field (cherry picked from commit b89ac5e)
…annotations in fields.yml mapping (elastic#13283) * Add `.*` to kubernetes labels and annotations in fields.yml mapping (elastic#13226)
This PR is to fix mapping for
kubernetes.labels
andkubernetes.annotations
in fields.yml. The error message is caused by this look like:closes #12638