83 lines
1.8 KiB
Plaintext
83 lines
1.8 KiB
Plaintext
# managed by puppet
|
|
|
|
"/var/log/aodh/*.log"
|
|
"/var/log/astute/*.log"
|
|
"/var/log/audit/audit.log"
|
|
"/var/log/ceilometer/*.log"
|
|
"/var/log/cinder/*.log"
|
|
"/var/log/glance/*.log"
|
|
"/var/log/heat/*.log"
|
|
"/var/log/keystone/*.log"
|
|
"/var/log/murano/*.log"
|
|
"/var/log/neutron/*.log"
|
|
"/var/log/nova/*.log"
|
|
"/var/log/sahara/*.log"
|
|
"/var/log/swift/*.log"
|
|
"/var/log/*-all.log"
|
|
"/var/log/auth.log"
|
|
"/var/log/corosync.log"
|
|
"/var/log/cron.log"
|
|
"/var/log/daemon.log"
|
|
"/var/log/dashboard.log"
|
|
"/var/log/debug"
|
|
"/var/log/dnsmasq.log"
|
|
"/var/log/fuelmenu.log"
|
|
"/var/log/kern.log"
|
|
"/var/log/lrmd.log"
|
|
"/var/log/mail.log"
|
|
"/var/log/mcollective*.log"
|
|
"/var/log/messages"
|
|
"/var/log/mongod.log"
|
|
"/var/log/mysqld.log"
|
|
"/var/log/nailgun-agent.log"
|
|
"/var/log/ostf*.log"
|
|
"/var/log/ostf/*.log"
|
|
"/var/log/pacemaker.log"
|
|
"/var/log/rsync.log"
|
|
"/var/log/sudo.log"
|
|
"/var/log/syslog"
|
|
"/var/log/user.log"
|
|
"/var/log/upstart/*.log"
|
|
"/var/log/remote/[1-9]*/*.log"
|
|
"/var/log/remote/[1-9]*/*/*.log"
|
|
{
|
|
# truncate file, do not delete & recreate
|
|
copytruncate
|
|
|
|
# compress rotated files with gzip
|
|
compress
|
|
|
|
# postpone compression to the next rotation
|
|
delaycompress
|
|
|
|
# ignore missing files
|
|
missingok
|
|
|
|
# do not rotate empty files
|
|
notifempty
|
|
|
|
# logrotate allows to use only year, month, day and unix epoch
|
|
dateext
|
|
dateformat -%Y%m%d-%s
|
|
|
|
# number of rotated files to keep
|
|
rotate <%= @keep %>
|
|
|
|
# do not rotate files unless both size and time conditions are met
|
|
<%= @rotation %>
|
|
minsize <%= @minsize %>
|
|
|
|
# force rotate if filesize exceeded <%= @maxsize %>
|
|
maxsize <%= @maxsize %>
|
|
|
|
<% if @osfamily == 'Debian' %>
|
|
# https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1278193
|
|
su root syslog
|
|
<% end %>
|
|
|
|
postrotate
|
|
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
|
reload rsyslog >/dev/null 2>&1 || true
|
|
endscript
|
|
}
|