-
Notifications
You must be signed in to change notification settings - Fork 474
[Kubernetes][Container Logs] Add ability to configure data_stream.dataset
& "Custom configuration"
#5555
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
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.
These additions look good to me.
@gizas @tommyers-elastic raising this with you too in case you have any additional comment or objection.
packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs
Show resolved
Hide resolved
|
packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs
Show resolved
Hide resolved
We had another internal round of discussions and I would like to remove my comment of #5555 (comment) The scenario that the user might only retrieve logs from specific application/ pods etc and would like to create a specific dataset to only include eg nginx logs is valid. But lets not expose the change to metrics, as those will still be coming from kubernetes and would create more confusion. Sorry for the mess here. So also this change #5555 (comment), to be done only for logs |
🌐 Coverage report
|
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, thanks!
Thank you @BenB196 for contributing this! |
Package kubernetes - 1.33.0 containing this change is available at https://epr.elastic.co/search?package=kubernetes |
Enhancement
What does this PR do?
This PR does 2 things for the Kubernetes Container Log integration:
data_stream.dataset
.Both changes are intended to bring this integration closer inline with the Custom Log integration.
Checklist
changelog.yml
file.[ ] I have verified that Kibana version constraints are current according to guidelines.Author's Checklist
data_stream.dataset
is now configurableBefore Upgrade
After Upgrade (No modifications)
Note: After the upgrade, the policy configuration no longer is setting
streams.data_stream.type: logs
. I don't believe this matters as I check the Custom logs integration and it does the same thing, as well as the static tests passed. But if desired, I can have it addstreams.data_stream.type: logs
.After Upgrade (With modifications)
How to test this PR locally
data_stream.dataset
value, and observe change is reflected in agent policyRelated issues
data_stream.dataset
of Kubernetes container logs #5551Screenshots