-
Notifications
You must be signed in to change notification settings - Fork 519
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: include /var/log/kdump
in the logdog tarball
#1695
logdog: include /var/log/kdump
in the logdog tarball
#1695
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.
👍
This is an existing problem but the kdump use case exacerbates it - we write the archive to /tmp which is a memory-backed tmpfs. It'd be better to write it somewhere under |
bd6dfb0
to
51cb525
Compare
Forced pushes include:
|
/var/log/kdump
in the logdog taball/var/log/kdump
in the logdog tarball
It's still accessible from 'outside' sudo sheltie under |
Yes: agarrcia@ ~> ssh ec2-user@HOST "cat /.bottlerocket/rootfs/var/log/support/bottlerocket-logs.tar.gz" > bottlerocket-logs.tar.gz
agarrcia@ ~> file bottlerocket-logs.tar.gz
bottlerocket-logs.tar.gz: gzip compressed data, original size modulo 2^32 224256 |
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.
Nice.
nit: one of the commit messages has a spelling error taball
.
This commit changes the default output directory for the tarball created by logdog, from `/tmp` to `/var/log/support`. Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
This commit adds `/var/log/kdump` so that logdog collects crash kernel dumps when they exist. Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
51cb525
to
541365e
Compare
Forced push fixes commits' messages |
Issue number:
N / A
Description of changes:
This commit adds
/var/log/kdump
so that logdog collects crash kernel dumps when they exist.This commit changes the default output directory for the tarball created by logdog, from
/tmp
to/var/log/support
.Testing done:
In aws-dev, which has kdump support enabled: I verified that the files generated by
prairiedog
were collected bylogdog
:tar --list -f /.bottlerocket/rootfs/var/log/support/bottlerocket-logs.tar.gz | grep var: bottlerocket-logs/var bottlerocket-logs/var/log bottlerocket-logs/var/log/kdump bottlerocket-logs/var/log/kdump/dmesg.log bottlerocket-logs/var/log/kdump/vmcore.dump bottlerocket-logs/var/log/kdump/prairiedog.log
In aws-ecs-1, which doesn't have kdump support enabled, I verified that
logdog
still works: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.