-
Notifications
You must be signed in to change notification settings - Fork 524
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
logdog: a tool for aggregating logs #880
Conversation
A fairly heavy revision based on @tjkirch review. The only suggestions that I didn't immediately embrace were:
If I missed anything other than these two bullet point, I apologize, it was due to the amount of code churn. Once the code stabilizes into its final form, I will redo the tests on a Bottlerocket host. |
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 unresolved a few comments above that still apply. Sorry, I know it was a lot!
In case anything goes wrong with diffing, this is the exact diff since the last review. |
I believe @tjkirch has nailed down quite a few of the technical issues. Not a blocker, but I'd like to suggest we add a little bit of logging to the program. The user is presumably running You could also log where the output tarball is located so the user doesn't have to consult documentation to learn what happened and what to do next. |
The output filepath was already done, but I have added the logging of each command right before executing it. |
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.
🍭
Issue number:
Closes #452
Description of changes:
A rust executable that shells out to multiple programs writing logs into an aggregation tempdir, then tars these and deletes the tempdir.
Testing done:
I built a Bottlerocket AMI and ran
logdog
on it.I used SSH to bring the tar to my local machine and inspected the logs.
(The Bottlerocket host joined the EKS cluster as a node.)
The size of the executable on the Bottlerocket host is
173K
.The size of the tarball✻
138K
.The size of the same tarball when inflated is
1.5M
.✻ on a host that's been running idle for about an hour.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.