Update logfile configurations.

This commit is contained in:
Darren 'Tadgy' Austin 2026-03-30 14:55:19 +00:00
commit 44b93b9422
17 changed files with 287 additions and 127 deletions

View file

@ -0,0 +1,4 @@
/var/log/alternatives.log {
missingok
notifempty
}

1
etc/logrotate.d/apache2 Normal file
View file

@ -0,0 +1 @@
# This file is intentionally empty to prevent new packages re-creating the original content.

15
etc/logrotate.d/apt Normal file
View file

@ -0,0 +1,15 @@
/var/log/apt/eipp.log.xz {
missingok
nocompress
notifempty
}
/var/log/apt/term.log {
missingok
notifempty
}
/var/log/apt/history.log {
missingok
notifempty
}

3
etc/logrotate.d/btmp Normal file
View file

@ -0,0 +1,3 @@
/var/log/btmp {
missingok
}

4
etc/logrotate.d/dpkg Normal file
View file

@ -0,0 +1,4 @@
/var/log/dpkg.log {
missingok
notifempty
}

View file

@ -0,0 +1 @@
# This file is intentionally empty to prevent new packages re-creating the original content.

View file

@ -0,0 +1,5 @@
/var/log/prometheus/prometheus.log {
copytruncate
notifempty
missingok
}

View file

@ -0,0 +1,5 @@
/var/log/prometheus/prometheus-alertmanager.log {
copytruncate
notifempty
missingok
}

View file

@ -0,0 +1,5 @@
/var/log/prometheus/prometheus-node-exporter.log {
copytruncate
notifempty
missingok
}

9
etc/logrotate.d/rsyslog Normal file
View file

@ -0,0 +1,9 @@
/var/log/auth /var/log/crond /var/log/messages /var/log/ftpd /var/log/kernel /var/log/dehydrated /var/log/smtpd /var/log/kerberos /var/log/named /var/log/samba/samba /var/log/rsyncd /var/log/php /var/log/httpd /var/log/ERROR /var/log/EMERG /var/log/DEBUG {
{
missingok
notifempty
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}

4
etc/logrotate.d/wtmp Normal file
View file

@ -0,0 +1,4 @@
/var/log/wtmp {
notifempty
missingok
}

4
etc/logrotate.d/wtmpdb Normal file
View file

@ -0,0 +1,4 @@
/var/log/wtmp.db {
notifempty
missingok
}