-
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
kubernetes processor use correct os path separator #11760
Conversation
When appending a trailing slash to the log path directory, it needs to use the correct PathSeperator for the given OS. elastic#9196
… zentron-kubernetes-path
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.
a couple, very opinionated glitches
other than that, LGTM
Not necesarily part of this review, but probably something to discuss:
|
Not necesarily part of this review, but probably something to discuss: I don't think there might be many kubelets running at locations others than default at linux, but could happen. We to add these locations to the config file, and provide current values as defaults |
tbh, I agree this whole code needs a refactor to better handle the different use cases (docker, kubernetes, OS)..., will put some time on improve it 👍 |
I like the idea of adding default log path, pod logs path and container logs path into config. If they are missing from config, then use the default in the code 😄 |
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.
Looks good, besides the changelog conflict 👍
merging this now, we can revisit this code later, I think it needs a broader refactor |
This PR completes #9205 to support windows nodes (and log paths) when adding kubernetes metadata
Original author: @zentron
closes #9196