mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Fixes Bug #12155: logrotate wasn't set up to rotate this file. For details see: https://bugzilla.ipfire.org/show_bug.cgi?id=12155 Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Acked-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
97 lines
1.9 KiB
Plaintext
97 lines
1.9 KiB
Plaintext
# rotate log files weekly
|
|
weekly
|
|
|
|
# keep 52 weeks worth of backlogs
|
|
rotate 52
|
|
|
|
# create new (empty) log files after rotating old ones
|
|
create
|
|
|
|
# uncomment this if you want your log files compressed
|
|
compress
|
|
|
|
# packages drop log rotation information into this directory
|
|
include /etc/logrotate.d
|
|
|
|
# wtmp
|
|
/var/log/wtmp {
|
|
weekly
|
|
create 0664 root utmp
|
|
rotate 1
|
|
}
|
|
|
|
/var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log {
|
|
missingok
|
|
sharedscripts
|
|
postrotate
|
|
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/suricata/*.log {
|
|
weekly
|
|
copytruncate
|
|
compress
|
|
ifempty
|
|
missingok
|
|
postrotate
|
|
/bin/find /var/log/suricata -path '/var/log/suricata/[0-9]*' -prune -exec /bin/rm -rf {} \;
|
|
/bin/find /var/log/suricata -name 'fast.log.*' -mtime +28 -exec /bin/rm -rf {} \;
|
|
/bin/kill -HUP `cat /var/run/suricata.pid 2> /dev/null` 2> /dev/null || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/squid/access.log /var/log/squid/user_agent.log /var/log/squid/referer.log {
|
|
weekly
|
|
copytruncate
|
|
ifempty
|
|
missingok
|
|
}
|
|
|
|
/var/log/squid/cache.log {
|
|
weekly
|
|
rotate 3
|
|
copytruncate
|
|
compress
|
|
missingok
|
|
}
|
|
|
|
/var/log/squid/store.log {
|
|
weekly
|
|
rotate 3
|
|
copytruncate
|
|
compress
|
|
missingok
|
|
postrotate
|
|
/bin/chmod -R ugo+rX /var/log/squid
|
|
/usr/sbin/squid -k rotate
|
|
endscript
|
|
}
|
|
|
|
/var/log/messages /var/log/bootlog /var/log/dhcpcd.log /var/log/mail {
|
|
create 664 root syslogd
|
|
sharedscripts
|
|
ifempty
|
|
postrotate
|
|
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/squidGuard/*.log {
|
|
weekly
|
|
rotate 4
|
|
copytruncate
|
|
compress
|
|
notifempty
|
|
missingok
|
|
}
|
|
|
|
/var/log/updatexlrator/*.log {
|
|
weekly
|
|
rotate 4
|
|
copytruncate
|
|
compress
|
|
notifempty
|
|
missingok
|
|
}
|