This is my /etc/logrotate.d/10-fuel-docker.conf (MOS 5.0, fresh install):
==========================================
# managed by puppet
"/var/log/kern.log"
"/var/log/debug"
"/var/log/syslog"
"/var/log/daemon.log"
"/var/log/auth.log"
"/var/log/audit/audit.log"
"/var/log/user.log"
"/var/log/mail.log"
"/var/log/cron.log"
"/var/log/docker"
"/var/log/docker-*.log"
"/var/log/lxc/*.log"
"/var/log/fuelmenu.log"
"/var/log/nailgun-agent.log"
"/var/log/nailgun/*.log"
"/var/log/astute/*.log"
"/var/log/ostf*.log"
"/var/log/httpd/*"
"/var/log/nginx/*.log"
"/var/log/rabbitmq/*"
"/var/log/cobbler/*.log"
"/var/log/supervisor/*.log"
"/var/log/dump.log"
{
# This file is used for daily log rotations, do not use size options here
sharedscripts
weekly
# rotate only if 30M size or bigger
minsize 30M
# truncate file, do not delete & recreate
copytruncate
# keep logs for 4 rotations
rotate 4
# compression will be postponed to the next rotation, if uncommented
# delaycompress
compress
# ignore missing files
missingok
# do not rotate empty files
notifempty
postrotate
# issue HUPing for all rsyslog pids including ones in the docker containers, if any.
/usr/bin/pkill -HUP rsyslogd 2> /dev/null 2> /dev/null || true
reload rsyslog >/dev/null 2>&1 || true
endscript
}
This is my /etc/logrotate. d/10-fuel- docker. conf (MOS 5.0, fresh install): ======= ======= ======= ======= =======
=======
# managed by puppet
"/var/log/kern.log" daemon. log" audit/audit. log" docker- *.log" lxc/*.log" fuelmenu. log" nailgun- agent.log" nailgun/ *.log" astute/ *.log" ostf*.log" nginx/* .log" rabbitmq/ *" cobbler/ *.log" supervisor/ *.log" usr/bin/ pkill -HUP rsyslogd 2> /dev/null 2> /dev/null || true
"/var/log/debug"
"/var/log/syslog"
"/var/log/
"/var/log/auth.log"
"/var/log/
"/var/log/user.log"
"/var/log/mail.log"
"/var/log/cron.log"
"/var/log/docker"
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/httpd/*"
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/dump.log"
{
# This file is used for daily log rotations, do not use size options here
sharedscripts
weekly
# rotate only if 30M size or bigger
minsize 30M
# truncate file, do not delete & recreate
copytruncate
# keep logs for 4 rotations
rotate 4
# compression will be postponed to the next rotation, if uncommented
# delaycompress
compress
# ignore missing files
missingok
# do not rotate empty files
notifempty
postrotate
# issue HUPing for all rsyslog pids including ones in the docker containers, if any.
/
reload rsyslog >/dev/null 2>&1 || true
endscript
}
======= ======= ======= ======= ======= =======
this is your steps on my master node:
======= ======= ======= ======= ======= ======= == d/10-fuel- docker. conf ======= ======= ======= ======= ======= ==
[root@fuel dockerctl]# find /var/log/remote/ -name "*.log.*"
[root@fuel dockerctl]# logrotate -f /etc/logrotate.
[root@fuel dockerctl]# find /var/log/remote/ -name "*.log.*" | wc -l
0
=======
I do not have logs rotated but "disk full".