Add logrotate for proxy systems
Added rsyslog logrotate cong for proxy systems and a task land the configs as well as fix some yamllint errors.
This commit is contained in:
parent
3284cdb6e4
commit
f97666a75d
2 changed files with 86 additions and 32 deletions
20
files/common/rsyslog-logrotate
Normal file
20
files/common/rsyslog-logrotate
Normal file
|
@ -0,0 +1,20 @@
|
|||
/var/log/cron
|
||||
/var/log/maillog
|
||||
/var/log/messages
|
||||
/var/log/secure
|
||||
/var/log/spooler
|
||||
{
|
||||
missingok
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/bin/systemctl reload rsyslog.service >/dev/null 2>&1 || true
|
||||
endscript
|
||||
daily
|
||||
rotate 7
|
||||
ifempty
|
||||
compress
|
||||
compresscmd /usr/bin/xz
|
||||
uncompresscmd /usr/bin/xz
|
||||
compressext .xz
|
||||
dateext
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue