cannot collect rotated syslog.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sosreport (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
In Progress
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU justification]
All rotated logs may be required for analysis
[Impact]
Missing log information without this fix.
[Fix]
Collect all the rotated logs.
[Test Case]
Without the fix, running sosreport will only collect the current log in /var/log.
With the fix,all the rotated logfiles will be collected.
[Regression]
None expected, this modification is already running in X,Y & Z
[Original description of the problem]
Cannot collect rotated syslog.1 or syslog.2.gz by sosreport. If syslog is rotated daily, syslog only contains logs in less than 24 hours.
I expect sosreport collects syslog and syslog.1 to see logs at least for 24 hours. Or it would be nice if sosreport has options to switch to collect old logs or not.
====
$ sudo logrotate -f /etc/logrotate.conf
$ ls -alF /var/log/syslog*
-rw-r----- 1 syslog adm 1984 Aug 13 16:12 /var/log/syslog
-rw-r----- 1 syslog adm 30816 Aug 13 16:11 /var/log/syslog.1
-rw-r----- 1 syslog adm 1332 Aug 13 15:55 /var/log/
-rw-r----- 1 syslog adm 6095 Aug 13 15:43 /var/log/
$ sudo sosreport -a -l | grep logs
logs Basic system information for Debian based distributions
logs Basic system information for Ubuntu based distributions
apache.log on gathers all apache logs
auditd.logsize 15 maximum size (MiB) of logs to collect
logs.logsize 15 max size (MiB) to collect per syslog file
logs.all_logs on collect all log files defined in syslog.conf
logs.logsize 15 max size (MiB) to collect per syslog file
logs.all_logs on collect all log files defined in syslog.conf
nscd.nscdlogsize 50 max size (MiB) to collect per nscd log file
openstack-
openstack-
openstack-
openstack-
$ sudo sosreport -a --batch
$ sudo tar tf /tmp/sosreport-
sosreport-
sosreport-
sosreport-
sosreport-
sosreport-
sosreport-
sosreport-
^ syslog.1 is not collected.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: sosreport 3.1-1ubuntu2
ProcVersionSign
Uname: Linux 3.16.0-6-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Wed Aug 13 15:52:09 2014
Dependencies: python3-six 1.5.2-1
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: sosreport
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in sosreport (Ubuntu): | |
status: | New → Triaged |
Changed in sosreport (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in sosreport (Ubuntu Yakkety): | |
status: | New → Fix Released |
Changed in sosreport (Ubuntu Xenial): | |
status: | New → Fix Released |
Changed in sosreport (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
description: | updated |
Changed in sosreport (Ubuntu Trusty): | |
status: | Triaged → In Progress |
tags: | added: sts-sru |
tags: |
added: sts-sru-needed removed: sts-sru |
Changed in sosreport (Ubuntu Trusty): | |
assignee: | Louis Bouchard (louis) → nobody |
tags: | removed: sts-sru-needed |
Just pushed this /github. com/sosreport/ sos/pull/ 427
https:/