-
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] Fix id for config map #37545
Conversation
Signed-off-by: constanca <[email protected]>
Signed-off-by: constanca <[email protected]>
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Do you mind updating also:
to keep dev-tools manifests up to date with deploy manifests |
Signed-off-by: constanca <[email protected]>
paths: | ||
- /var/log/containers/*.log | ||
parsers: | ||
- container: ~ | ||
prospector: | ||
scanner: | ||
fingerprint.enabled: true | ||
fingerprint.length: 300 |
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.
By default the length for fingerprint is 1024, which is what is causing the error. We can reduce it to 300 (minimum possible is 64), and that solves the problem.
It's not an error, it's a warning and it's totally normal to have it until the file is large enough to be picked up. The warning needs to be there so the user knows why there are no events coming from a file yet.
Reducing the fingerprint might cause collisions in file identity, lowering the value must be done only if the user is 100% sure that the new amount of characters is always unique for each file. Please keep the value as it is now.
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.
Thank you for the explanation @rdner , so the warning does not cause unexpected behavior? I will remove that line in that case.
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.
@constanca-m The warning is just to notify the user why the ingestion of the file got delayed. Perhaps we could re-phrase this warning to be more clear and less error-looking. Ideas are welcome.
It does not cause any incorrect/unexpected behaviour, it's a normal state of things.
@@ -113,14 +113,15 @@ data: | |||
filebeat.yml: |- | |||
filebeat.inputs: | |||
- type: filestream | |||
id: kubernetes-container-logs-${data.kubernetes.pod.name}-${data.kubernetes.container.id} | |||
id: kubernetes-container-logs |
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.
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 was not correctly tested in that PR, this is a fix to that
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.
@constanca-m My point is rather if this was not tested, how can we trust the rest of the changes from that PR? Perhaps we need to ask @gsantoro to re-test those changes.
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.
hello @rdner , sorry that was my fault. It was an unintended change. I'll do some testing now anyway
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 have now tested this. it works as expected with this PR changes. thanks @constanca-m for catching this
Signed-off-by: constanca <[email protected]>
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 in the current state.
* Fix config map
This PR is a fix to a bug introduced in #37401.
Defining the
id
asCauses the error:
We need to remove the fields
${data.*}
in theid
to fix it.