Update logfile configurations.
This commit is contained in:
parent
9f1e0b51c8
commit
44b93b9422
17 changed files with 287 additions and 127 deletions
4
etc/logrotate.d/alternatives
Normal file
4
etc/logrotate.d/alternatives
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/var/log/alternatives.log {
|
||||
missingok
|
||||
notifempty
|
||||
}
|
||||
1
etc/logrotate.d/apache2
Normal file
1
etc/logrotate.d/apache2
Normal 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
15
etc/logrotate.d/apt
Normal 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
3
etc/logrotate.d/btmp
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/var/log/btmp {
|
||||
missingok
|
||||
}
|
||||
4
etc/logrotate.d/dpkg
Normal file
4
etc/logrotate.d/dpkg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/var/log/dpkg.log {
|
||||
missingok
|
||||
notifempty
|
||||
}
|
||||
1
etc/logrotate.d/php8.4-fpm
Normal file
1
etc/logrotate.d/php8.4-fpm
Normal file
|
|
@ -0,0 +1 @@
|
|||
# This file is intentionally empty to prevent new packages re-creating the original content.
|
||||
5
etc/logrotate.d/prometheus
Normal file
5
etc/logrotate.d/prometheus
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/var/log/prometheus/prometheus.log {
|
||||
copytruncate
|
||||
notifempty
|
||||
missingok
|
||||
}
|
||||
5
etc/logrotate.d/prometheus-alertmanager
Normal file
5
etc/logrotate.d/prometheus-alertmanager
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/var/log/prometheus/prometheus-alertmanager.log {
|
||||
copytruncate
|
||||
notifempty
|
||||
missingok
|
||||
}
|
||||
5
etc/logrotate.d/prometheus-node-exporter
Normal file
5
etc/logrotate.d/prometheus-node-exporter
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/var/log/prometheus/prometheus-node-exporter.log {
|
||||
copytruncate
|
||||
notifempty
|
||||
missingok
|
||||
}
|
||||
9
etc/logrotate.d/rsyslog
Normal file
9
etc/logrotate.d/rsyslog
Normal 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
4
etc/logrotate.d/wtmp
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/var/log/wtmp {
|
||||
notifempty
|
||||
missingok
|
||||
}
|
||||
4
etc/logrotate.d/wtmpdb
Normal file
4
etc/logrotate.d/wtmpdb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/var/log/wtmp.db {
|
||||
notifempty
|
||||
missingok
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue