[Kubernetes][Container Logs] Add ability to configure data_stream.dataset & "Custom configuration" #5555
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
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.ymlfile.[ ] I have verified that Kibana version constraints are current according to guidelines.Author's Checklist
data_stream.datasetis 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.datasetvalue, and observe change is reflected in agent policyRelated issues
data_stream.datasetof Kubernetes container logs #5551Screenshots