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
sos report --all-logs does not gather all rotated logs in ubuntu #3224
Comments
In your example for instance, the |
* Add new command to check status using `pro` * Add /var/log/ubuntu-advantage-timer* logs Related: sosreport#3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Related: sosreport#3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Related: sosreport#3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Related: sosreport#3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
* Add new command to check status using `pro` * Add json format for the status command * Add /var/log/ubuntu-advantage-timer* logs Related: sosreport#3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
* Add new command to check status using `pro` * Add json format for the status command * Add /var/log/ubuntu-advantage-timer* logs Related: #3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Related: sosreport#3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Related: #3224 Signed-off-by: Arif Ali <arif.ali@canonical.com>
--all-logs option has been broken in Ubuntu for a while. This is likely related to commit 745b4a2
What we notice is the rotated (.1 , .2 etc) and .tar.gz'd logs aren't collected from /var/log even with --all-logs specified. None of the ubuntu-advantage logs are collected either. the rotated boot logs are also not collected.
So we need a fix on ubuntu because any services that do not use the journal but add their own rotated logs in /var/log and do not have a sos plugin end up with those files not collected.
For eg in my own laptop, i ran sos report --all-logs using 4.5.3 jammy, and see the difference in whats in /var/log and what the sosreport has in /var/log
Compare those collected files to what actually is in /var/log on the machine,
The text was updated successfully, but these errors were encountered: