Всем привет!
Подскажите как обуздать пухнущий лог. Вот например хочу уменьшить размер auth.log
102M /var/log/auth.log
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/cron.log
/var/log/debug
/var/log/messages
/var/log/dmesg
/var/log/fail2ban.log
/var/log/udev
/var/log/chevengur_to_server00.log
/var/log/openvpn.log
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}
/var/log/auth.log
{
rotate 4
size 1M
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}