Enabling debug fills disk space with logging to kern.log + syslog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Undecided
|
Joseph Phillips |
Bug Description
Enabling debug on a 2.9.42 controller fills syslog AND kern.log files with juju.daemon logs twice.
I wonder what log level juju is using but it should probably set the proper facility to avoid logs getting into kern.log, and instead of going to syslog go to daemon.log.
Mar 22 05:39:20 juju-3128a8-
Mar 22 05:39:20 juju-3128a8-
Mar 22 05:39:20 juju-3128a8-
This is the relevant rsyslog (default) config on the controller:
# provides kernel logging support and enable non-kernel klog messages
module(
auth,authpriv.* /var/log/auth.log
*.*;auth,
#cron.* /var/log/cron.log
#daemon.* -/var/log/
kern.* -/var/log/kern.log
#lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
#user.* -/var/log/user.log
I guess juju daemon should log to the daemon facility and enable some specific rsyslog setup like this:
/etc/rsyslog.
if $syslogfacility
/var/
end
}
Changed in juju: | |
assignee: | nobody → Joseph Phillips (manadart) |
status: | New → Triaged |