-all-logs is broken for ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sosreport |
New
|
Unknown
|
|||
sosreport (Ubuntu) |
Confirmed
|
Undecided
|
nikhil kshirsagar |
Bug Description
--all-logs option has been broken in Ubuntu for a while. This is related to commit https:/
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
:/tmp/sosreport
apport.log apport.log.2.gz apport.log.4.gz apport.log.6.gz apt boot.log dist-upgrade dpkg.log dpkg.log.2.gz dpkg.log.4.gz journal syslog unattended-upgrades
apport.log.1 apport.log.3.gz apport.log.5.gz apport.log.7.gz auth.log cups dmesg dpkg.log.1 dpkg.log.3.gz installer kern.log ubuntu-
Compare those collected files to what actually is in /var/log on the machine,
:/tmp/sosreport
alternatives.log apport.log.3.gz auth.log.2.gz boot.log.5 dmesg dpkg.log.2.gz hp lastlog syslog.4.gz wtmp
alternatives.log.1 apport.log.4.gz auth.log.3.gz boot.log.6 dmesg.0 dpkg.log.3.gz installer openvpn ubuntu-
alternatives.
alternatives.
alternatives.
apport.log apt boot.log.2 btmp.1 dmesg.4.gz gdm3 kern.log.2.gz syslog.1 ubuntu-
apport.log.1 auth.log boot.log.3 cups dpkg.log gpu-manager.log kern.log.3.gz syslog.2.gz ubuntu-
apport.log.2.gz auth.log.1 boot.log.4 dist-upgrade dpkg.log.1 gpu-manager-
Changed in sosreport (Ubuntu): | |
assignee: | nobody → nikhil kshirsagar (nkshirsagar) |
description: | updated |
Changed in sosreport: | |
status: | Unknown → New |
Status changed to 'Confirmed' because the bug affects multiple users.