Pages : 1
#1 Le 29/04/2019, à 18:13
- ethan7888
logrotate ne fonctionne pas
Bonjour à tous,
Version: Ubuntu 16.04.6 LTS
version logrotate = 3.8.7
Lorsque je lance le debug du logrotate : voici le message d'erreur systématique que je vois :
logrotate -d /etc/logrotate.d/ufw
"Ignoring /etc/logrotate.d/ufw because of bad file mode."
Sur le web, il conseil de mettre les droits en 0644 sur /etc/logrotate.d/ c'est ce que j'ai fait, mais j'ai toujours le même message, auriez-vous une idée ?
Cordialement
Ethan7888
Hors ligne
#2 Le 29/04/2019, à 18:36
- pingouinux
Re : logrotate ne fonctionne pas
Bonjour,
Il faut que tu aies la permission d'exécution pour le répertoire.
$ ls -ld /etc/logrotate.d
drwxr-xr-x 2 root root 4096 Apr 5 06:58 /etc/logrotate.d
$ ls -l /etc/logrotate.d
total 72
-rw-r--r-- 1 root root 433 Jun 11 2018 apache2
-rw-r--r-- 1 root root 126 Apr 17 2009 apport
-rw-r--r-- 1 root root 173 May 8 2010 apt
-rw-r--r-- 1 root root 79 Nov 27 2015 aptitude
-rw-r--r-- 1 root root 148 Apr 1 2009 checkbox
-rw-r--r-- 1 root root 135 Feb 19 2010 consolekit
-rw-r--r-- 1 root root 181 Feb 13 2016 cups-daemon
-rw-r--r-- 1 root root 232 Sep 8 2010 dpkg
-rw-r--r-- 1 root root 125 Mar 31 2017 lightdm
-rw-r--r-- 1 root root 157 Oct 6 2009 pm-utils
-rw-r--r-- 1 root root 234 Jan 18 2014 polipo
-rw-r--r-- 1 root root 94 Feb 20 2009 ppp
-rw-r--r-- 1 root root 501 Mar 20 03:08 rsyslog
-rw-r--r-- 1 root root 513 Jun 6 2011 speech-dispatcher
-rw-r--r-- 1 root root 234 Jan 14 2018 tor
-rw-r--r-- 1 root root 178 Aug 7 2014 ufw
-rw-r--r-- 1 root root 235 Feb 18 2016 unattended-upgrades
-rw-r--r-- 1 root root 122 Apr 26 2012 upstart
Hors ligne
#3 Le 29/04/2019, à 21:36
- ethan7888
Re : logrotate ne fonctionne pas
Bonjour,
Il faut que tu aies la permission d'exécution pour le répertoire.$ ls -ld /etc/logrotate.d drwxr-xr-x 2 root root 4096 Apr 5 06:58 /etc/logrotate.d $ ls -l /etc/logrotate.d total 72 -rw-r--r-- 1 root root 433 Jun 11 2018 apache2 -rw-r--r-- 1 root root 126 Apr 17 2009 apport -rw-r--r-- 1 root root 173 May 8 2010 apt -rw-r--r-- 1 root root 79 Nov 27 2015 aptitude -rw-r--r-- 1 root root 148 Apr 1 2009 checkbox -rw-r--r-- 1 root root 135 Feb 19 2010 consolekit -rw-r--r-- 1 root root 181 Feb 13 2016 cups-daemon -rw-r--r-- 1 root root 232 Sep 8 2010 dpkg -rw-r--r-- 1 root root 125 Mar 31 2017 lightdm -rw-r--r-- 1 root root 157 Oct 6 2009 pm-utils -rw-r--r-- 1 root root 234 Jan 18 2014 polipo -rw-r--r-- 1 root root 94 Feb 20 2009 ppp -rw-r--r-- 1 root root 501 Mar 20 03:08 rsyslog -rw-r--r-- 1 root root 513 Jun 6 2011 speech-dispatcher -rw-r--r-- 1 root root 234 Jan 14 2018 tor -rw-r--r-- 1 root root 178 Aug 7 2014 ufw -rw-r--r-- 1 root root 235 Feb 18 2016 unattended-upgrades -rw-r--r-- 1 root root 122 Apr 26 2012 upstart
Bonjour, merci pour votre retour, en faite, je l'avais déjà fait et j'ai toujours le même message d'erreur
Cordialement
Hors ligne
#4 Le 29/04/2019, à 22:12
- bruno
Re : logrotate ne fonctionne pas
Retour de :
ls -l /var/log/ufw.log
Si le fichier n’existe pas le créer :
sudo touch /var/log/ufw.log
lui attribuer le bon propriétaire et groupe :
sudo chown syslog:adm /var/log/ufw.log
et les bon droits :
sudo chmod 640 /var/log/ufw.log
#5 Le 30/04/2019, à 10:46
- ethan7888
Re : logrotate ne fonctionne pas
Retour de :
ls -l /var/log/ufw.log
Si le fichier n’existe pas le créer :
sudo touch /var/log/ufw.log
lui attribuer le bon propriétaire et groupe :
sudo chown syslog:adm /var/log/ufw.log
et les bon droits :
sudo chmod 640 /var/log/ufw.log
Bonjour,
Merci encore pour votre aide à tous, )
ls -l /var/log/ufw.log
-rw-r----- 1 syslog adm 27267442 Apr 30 11:43 /var/log/ufw.log
Il existe, il a bien les bons propriétaires/groupe et aussi les bons droits à priori, vous confirmez ?
Cordialement
Ethan7888
Hors ligne
#6 Le 30/04/2019, à 11:23
- bruno
Re : logrotate ne fonctionne pas
C'est correct.
Comme les doits sur ce fichier et sur les fichiers de rotation des logs sont bons, je ne comprends pas comment cette erreur apparaît :
Ignoring /etc/logrotate.d/ufw because of bad file mode.
À moins que tu n'aies lancé ta commande logrotate en root ?
Si c'est le cas l'erreur est probablement normale. Sinon il faut voir le contenu du fichier /etc/logrotate.conf ainsi que les droits sur /var/log :
ls -ld /var/log
Dernière modification par bruno (Le 30/04/2019, à 11:24)
#7 Le 30/04/2019, à 11:31
- ethan7888
Re : logrotate ne fonctionne pas
C'est correct.
Comme les doits sur ce fichier et sur les fichiers de rotation des logs sont bons, je ne comprends pas comment cette erreur apparaît :Ignoring /etc/logrotate.d/ufw because of bad file mode.
À moins que tu n'aies lancé ta commande logrotate en root ?
Si c'est le cas l'erreur est probablement normale. Sinon il faut voir le contenu du fichier /etc/logrotate.conf ainsi que les droits sur /var/log :ls -ld /var/log
Alors effectivement, j'ai lancé la commande logrotate en root, donc je me suis déconnecté de root et je suis donc avec mon utilisateur simple, voici le résultat de la commande :
"logrotate -d /etc/logrotate.d/
reading config file apache2
reading config file apt
reading config file certbot
reading config file dpkg
reading config file exim4-base
reading config file exim4-paniclog
reading config file haproxy
reading config file php7.0-fpm
reading config file php7.1-fpm
reading config file rsyslog
reading config file ufw
reading config file unattended-upgrades
reading config file varnish
Handling 17 logs
rotating pattern: /var/log/apache2/*.log after 1 days (14 rotations)
empty log files are not rotated, old logs are removed
No logs found. Rotation not needed.
rotating pattern: /var/log/apt/term.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apt/term.log
error: stat of /var/log/apt/term.log failed: Permission denied
rotating pattern: /var/log/apt/history.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apt/history.log
error: stat of /var/log/apt/history.log failed: Permission denied
rotating pattern: /var/log/letsencrypt/*.log weekly (12 rotations)
empty log files are rotated, old logs are removed
No logs found. Rotation not needed.
rotating pattern: /var/log/dpkg.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/dpkg.log
error: stat of /var/log/dpkg.log failed: Permission denied
rotating pattern: /var/log/alternatives.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/alternatives.log
error: stat of /var/log/alternatives.log failed: Permission denied
rotating pattern: /var/log/exim4/mainlog /var/log/exim4/rejectlog after 1 days (10 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/mainlog
error: stat of /var/log/exim4/mainlog failed: Permission denied
considering log /var/log/exim4/rejectlog
error: stat of /var/log/exim4/rejectlog failed: Permission denied
rotating pattern: /var/log/exim4/paniclog 10485760 bytes (10 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/paniclog
error: stat of /var/log/exim4/paniclog failed: Permission denied
rotating pattern: /var/log/haproxy.log after 1 days (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/haproxy.log
error: stat of /var/log/haproxy.log failed: Permission denied
rotating pattern: /var/log/php7.0-fpm.log weekly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/php7.0-fpm.log
error: stat of /var/log/php7.0-fpm.log failed: Permission denied
rotating pattern: /var/log/php7.1-fpm.log weekly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/php7.1-fpm.log
error: stat of /var/log/php7.1-fpm.log failed: Permission denied
rotating pattern: /var/log/syslog
after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/syslog
error: stat of /var/log/syslog failed: Permission denied
rotating pattern: /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/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mail.info
error: stat of /var/log/mail.info failed: Permission denied
considering log /var/log/mail.warn
error: stat of /var/log/mail.warn failed: Permission denied
considering log /var/log/mail.err
error: stat of /var/log/mail.err failed: Permission denied
considering log /var/log/mail.log
error: stat of /var/log/mail.log failed: Permission denied
considering log /var/log/daemon.log
error: stat of /var/log/daemon.log failed: Permission denied
considering log /var/log/kern.log
error: stat of /var/log/kern.log failed: Permission denied
considering log /var/log/auth.log
error: stat of /var/log/auth.log failed: Permission denied
considering log /var/log/user.log
error: stat of /var/log/user.log failed: Permission denied
considering log /var/log/lpr.log
error: stat of /var/log/lpr.log failed: Permission denied
considering log /var/log/cron.log
error: stat of /var/log/cron.log failed: Permission denied
considering log /var/log/debug
error: stat of /var/log/debug failed: Permission denied
considering log /var/log/messages
error: stat of /var/log/messages failed: Permission denied
rotating pattern: /var/log/ufw.log
weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ufw.log
error: stat of /var/log/ufw.log failed: Permission denied
rotating pattern: /var/log/unattended-upgrades/unattended-upgrades.log
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
monthly (6 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/unattended-upgrades/unattended-upgrades.log
error: stat of /var/log/unattended-upgrades/unattended-upgrades.log failed: Permission denied
considering log /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
error: stat of /var/log/unattended-upgrades/unattended-upgrades-dpkg.log failed: Permission denied
considering log /var/log/unattended-upgrades/unattended-upgrades-shutdown.log
error: stat of /var/log/unattended-upgrades/unattended-upgrades-shutdown.log failed: Permission denied
rotating pattern: /var/log/varnish/varnish.log after 1 days (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/varnish/varnish.log
error: stat of /var/log/varnish/varnish.log failed: Permission denied
rotating pattern: /var/log/varnish/varnishncsa.log after 1 days (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/varnish/varnishncsa.log
error: stat of /var/log/varnish/varnishncsa.log failed: Permission denied"
A priori, j'ai des permissions denied sur pas mal d'endroits, il faut aussi que je mette un chmod 640 sur les fichiers de logs en questions ?
Cordialement
Ethan7888
--
Modération : les balises [ code ] STP. Sinon c'est illisible.
Dernière modification par bruno (Le 30/04/2019, à 11:36)
Hors ligne
#8 Le 30/04/2019, à 11:50
- bruno
Re : logrotate ne fonctionne pas
On ne modifie jamais les droits d'accès sur les fichiers système, que ce soit les logs ou autres, sauf cas très particulier et quand on est absolument sûr de ce que l'on fait.
Tu auras toujours des erreurs en utilisant la commande logrotate sans préciser la configuration. Pour ne pas avoir d'erreurs :
sudo logrotate -d /etc/logrotate.d/ /etc/logrotate.conf
#9 Le 30/04/2019, à 14:24
- ethan7888
Re : logrotate ne fonctionne pas
On ne modifie jamais les droits d'accès sur les fichiers système, que ce soit les logs ou autres, sauf cas très particulier et quand on est absolument sûr de ce que l'on fait.
Tu auras toujours des erreurs en utilisant la commande logrotate sans préciser la configuration. Pour ne pas avoir d'erreurs :
sudo logrotate -d /etc/logrotate.d/ /etc/logrotate.conf
Bonjour,
Merci pour les conseils liés au droits des fichiers système.
J'ai donc exécuté la commande que vous m'avez conseillé, voici le résultat:
sudo logrotate -d /etc/logrotate.d/ /etc/logrotate.conf
reading config file apache2
reading config file apt
reading config file certbot
reading config file dpkg
reading config file exim4-base
reading config file exim4-paniclog
reading config file haproxy
reading config file php7.0-fpm
reading config file php7.1-fpm
reading config file rsyslog
reading config file ufw
reading config file unattended-upgrades
reading config file varnish
Ignoring /etc/logrotate.conf because of bad file mode.
Handling 17 logs
rotating pattern: /var/log/apache2/*.log after 1 days (14 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apache2/access.log
log does not need rotating
considering log /var/log/apache2/error.log
log needs rotating
considering log /var/log/apache2/free-cald.log
log needs rotating
considering log /var/log/apache2/other_vhosts_access.log
log does not need rotating
considering log /var/log/apache2/sooner.fr.log
log needs rotating
rotating log /var/log/apache2/error.log, log->rotateCount is 14
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
renaming /var/log/apache2/error.log.14.gz to /var/log/apache2/error.log.15.gz (rotatecount 14, logstart 1, i 14),
renaming /var/log/apache2/error.log.13.gz to /var/log/apache2/error.log.14.gz (rotatecount 14, logstart 1, i 13),
renaming /var/log/apache2/error.log.12.gz to /var/log/apache2/error.log.13.gz (rotatecount 14, logstart 1, i 12),
renaming /var/log/apache2/error.log.11.gz to /var/log/apache2/error.log.12.gz (rotatecount 14, logstart 1, i 11),
renaming /var/log/apache2/error.log.10.gz to /var/log/apache2/error.log.11.gz (rotatecount 14, logstart 1, i 10),
renaming /var/log/apache2/error.log.9.gz to /var/log/apache2/error.log.10.gz (rotatecount 14, logstart 1, i 9),
renaming /var/log/apache2/error.log.8.gz to /var/log/apache2/error.log.9.gz (rotatecount 14, logstart 1, i 8),
renaming /var/log/apache2/error.log.7.gz to /var/log/apache2/error.log.8.gz (rotatecount 14, logstart 1, i 7),
renaming /var/log/apache2/error.log.6.gz to /var/log/apache2/error.log.7.gz (rotatecount 14, logstart 1, i 6),
renaming /var/log/apache2/error.log.5.gz to /var/log/apache2/error.log.6.gz (rotatecount 14, logstart 1, i 5),
renaming /var/log/apache2/error.log.4.gz to /var/log/apache2/error.log.5.gz (rotatecount 14, logstart 1, i 4),
renaming /var/log/apache2/error.log.3.gz to /var/log/apache2/error.log.4.gz (rotatecount 14, logstart 1, i 3),
renaming /var/log/apache2/error.log.2.gz to /var/log/apache2/error.log.3.gz (rotatecount 14, logstart 1, i 2),
renaming /var/log/apache2/error.log.1.gz to /var/log/apache2/error.log.2.gz (rotatecount 14, logstart 1, i 1),
renaming /var/log/apache2/error.log.0.gz to /var/log/apache2/error.log.1.gz (rotatecount 14, logstart 1, i 0),
rotating log /var/log/apache2/free-cald.log, log->rotateCount is 14
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
renaming /var/log/apache2/free-cald.log.14.gz to /var/log/apache2/free-cald.log.15.gz (rotatecount 14, logstart 1, i 14),
renaming /var/log/apache2/free-cald.log.13.gz to /var/log/apache2/free-cald.log.14.gz (rotatecount 14, logstart 1, i 13),
renaming /var/log/apache2/free-cald.log.12.gz to /var/log/apache2/free-cald.log.13.gz (rotatecount 14, logstart 1, i 12),
renaming /var/log/apache2/free-cald.log.11.gz to /var/log/apache2/free-cald.log.12.gz (rotatecount 14, logstart 1, i 11),
renaming /var/log/apache2/free-cald.log.10.gz to /var/log/apache2/free-cald.log.11.gz (rotatecount 14, logstart 1, i 10),
renaming /var/log/apache2/free-cald.log.9.gz to /var/log/apache2/free-cald.log.10.gz (rotatecount 14, logstart 1, i 9),
renaming /var/log/apache2/free-cald.log.8.gz to /var/log/apache2/free-cald.log.9.gz (rotatecount 14, logstart 1, i 8),
renaming /var/log/apache2/free-cald.log.7.gz to /var/log/apache2/free-cald.log.8.gz (rotatecount 14, logstart 1, i 7),
renaming /var/log/apache2/free-cald.log.6.gz to /var/log/apache2/free-cald.log.7.gz (rotatecount 14, logstart 1, i 6),
renaming /var/log/apache2/free-cald.log.5.gz to /var/log/apache2/free-cald.log.6.gz (rotatecount 14, logstart 1, i 5),
renaming /var/log/apache2/free-cald.log.4.gz to /var/log/apache2/free-cald.log.5.gz (rotatecount 14, logstart 1, i 4),
renaming /var/log/apache2/free-cald.log.3.gz to /var/log/apache2/free-cald.log.4.gz (rotatecount 14, logstart 1, i 3),
renaming /var/log/apache2/free-cald.log.2.gz to /var/log/apache2/free-cald.log.3.gz (rotatecount 14, logstart 1, i 2),
renaming /var/log/apache2/free-cald.log.1.gz to /var/log/apache2/free-cald.log.2.gz (rotatecount 14, logstart 1, i 1),
renaming /var/log/apache2/free-cald.log.0.gz to /var/log/apache2/free-cald.log.1.gz (rotatecount 14, logstart 1, i 0),
rotating log /var/log/apache2/sooner.fr.log, log->rotateCount is 14
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
renaming /var/log/apache2/sooner.fr.log.14.gz to /var/log/apache2/sooner.fr.log.15.gz (rotatecount 14, logstart 1, i 14),
renaming /var/log/apache2/sooner.fr.log.13.gz to /var/log/apache2/sooner.fr.log.14.gz (rotatecount 14, logstart 1, i 13),
renaming /var/log/apache2/sooner.fr.log.12.gz to /var/log/apache2/sooner.fr.log.13.gz (rotatecount 14, logstart 1, i 12),
renaming /var/log/apache2/sooner.fr.log.11.gz to /var/log/apache2/sooner.fr.log.12.gz (rotatecount 14, logstart 1, i 11),
renaming /var/log/apache2/sooner.fr.log.10.gz to /var/log/apache2/sooner.fr.log.11.gz (rotatecount 14, logstart 1, i 10),
renaming /var/log/apache2/sooner.fr.log.9.gz to /var/log/apache2/sooner.fr.log.10.gz (rotatecount 14, logstart 1, i 9),
renaming /var/log/apache2/sooner.fr.log.8.gz to /var/log/apache2/sooner.fr.log.9.gz (rotatecount 14, logstart 1, i 8),
renaming /var/log/apache2/sooner.fr.log.7.gz to /var/log/apache2/sooner.fr.log.8.gz (rotatecount 14, logstart 1, i 7),
renaming /var/log/apache2/sooner.fr.log.6.gz to /var/log/apache2/sooner.fr.log.7.gz (rotatecount 14, logstart 1, i 6),
renaming /var/log/apache2/sooner.fr.log.5.gz to /var/log/apache2/sooner.fr.log.6.gz (rotatecount 14, logstart 1, i 5),
renaming /var/log/apache2/sooner.fr.log.4.gz to /var/log/apache2/sooner.fr.log.5.gz (rotatecount 14, logstart 1, i 4),
renaming /var/log/apache2/sooner.fr.log.3.gz to /var/log/apache2/sooner.fr.log.4.gz (rotatecount 14, logstart 1, i 3),
renaming /var/log/apache2/sooner.fr.log.2.gz to /var/log/apache2/sooner.fr.log.3.gz (rotatecount 14, logstart 1, i 2),
renaming /var/log/apache2/sooner.fr.log.1.gz to /var/log/apache2/sooner.fr.log.2.gz (rotatecount 14, logstart 1, i 1),
renaming /var/log/apache2/sooner.fr.log.0.gz to /var/log/apache2/sooner.fr.log.1.gz (rotatecount 14, logstart 1, i 0),
running prerotate script
running script with arg /var/log/apache2/*.log : "
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
"
renaming /var/log/apache2/error.log to /var/log/apache2/error.log.1
creating new /var/log/apache2/error.log mode = 0640 uid = 0 gid = 4
renaming /var/log/apache2/free-cald.log to /var/log/apache2/free-cald.log.1
creating new /var/log/apache2/free-cald.log mode = 0640 uid = 0 gid = 4
renaming /var/log/apache2/sooner.fr.log to /var/log/apache2/sooner.fr.log.1
creating new /var/log/apache2/sooner.fr.log mode = 0640 uid = 0 gid = 4
running postrotate script
running script with arg /var/log/apache2/*.log : "
if /etc/init.d/apache2 status > /dev/null ; then \
/etc/init.d/apache2 reload > /dev/null; \
fi;
"
removing old log /var/log/apache2/error.log.15.gz
error: error opening /var/log/apache2/error.log.15.gz: No such file or directory
rotating pattern: /var/log/apt/term.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apt/term.log
log does not need rotating
rotating pattern: /var/log/apt/history.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apt/history.log
log does not need rotating
rotating pattern: /var/log/letsencrypt/*.log weekly (12 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/letsencrypt/letsencrypt.log
log needs rotating
rotating log /var/log/letsencrypt/letsencrypt.log, log->rotateCount is 12
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
renaming /var/log/letsencrypt/letsencrypt.log.12.gz to /var/log/letsencrypt/letsencrypt.log.13.gz (rotatecount 12, logstart 1, i 12),
renaming /var/log/letsencrypt/letsencrypt.log.11.gz to /var/log/letsencrypt/letsencrypt.log.12.gz (rotatecount 12, logstart 1, i 11),
renaming /var/log/letsencrypt/letsencrypt.log.10.gz to /var/log/letsencrypt/letsencrypt.log.11.gz (rotatecount 12, logstart 1, i 10),
renaming /var/log/letsencrypt/letsencrypt.log.9.gz to /var/log/letsencrypt/letsencrypt.log.10.gz (rotatecount 12, logstart 1, i 9),
renaming /var/log/letsencrypt/letsencrypt.log.8.gz to /var/log/letsencrypt/letsencrypt.log.9.gz (rotatecount 12, logstart 1, i 8),
renaming /var/log/letsencrypt/letsencrypt.log.7.gz to /var/log/letsencrypt/letsencrypt.log.8.gz (rotatecount 12, logstart 1, i 7),
renaming /var/log/letsencrypt/letsencrypt.log.6.gz to /var/log/letsencrypt/letsencrypt.log.7.gz (rotatecount 12, logstart 1, i 6),
renaming /var/log/letsencrypt/letsencrypt.log.5.gz to /var/log/letsencrypt/letsencrypt.log.6.gz (rotatecount 12, logstart 1, i 5),
renaming /var/log/letsencrypt/letsencrypt.log.4.gz to /var/log/letsencrypt/letsencrypt.log.5.gz (rotatecount 12, logstart 1, i 4),
renaming /var/log/letsencrypt/letsencrypt.log.3.gz to /var/log/letsencrypt/letsencrypt.log.4.gz (rotatecount 12, logstart 1, i 3),
renaming /var/log/letsencrypt/letsencrypt.log.2.gz to /var/log/letsencrypt/letsencrypt.log.3.gz (rotatecount 12, logstart 1, i 2),
renaming /var/log/letsencrypt/letsencrypt.log.1.gz to /var/log/letsencrypt/letsencrypt.log.2.gz (rotatecount 12, logstart 1, i 1),
renaming /var/log/letsencrypt/letsencrypt.log.0.gz to /var/log/letsencrypt/letsencrypt.log.1.gz (rotatecount 12, logstart 1, i 0),
renaming /var/log/letsencrypt/letsencrypt.log to /var/log/letsencrypt/letsencrypt.log.1
compressing log with: /bin/gzip
removing old log /var/log/letsencrypt/letsencrypt.log.13.gz
error: error opening /var/log/letsencrypt/letsencrypt.log.13.gz: No such file or directory
rotating pattern: /var/log/dpkg.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/dpkg.log
log does not need rotating
rotating pattern: /var/log/alternatives.log monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/alternatives.log
log does not need rotating
rotating pattern: /var/log/exim4/mainlog /var/log/exim4/rejectlog after 1 days (10 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/mainlog
log does not need rotating
considering log /var/log/exim4/rejectlog
log /var/log/exim4/rejectlog does not exist -- skipping
rotating pattern: /var/log/exim4/paniclog 10485760 bytes (10 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/paniclog
log /var/log/exim4/paniclog does not exist -- skipping
rotating pattern: /var/log/haproxy.log after 1 days (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/haproxy.log
log needs rotating
rotating log /var/log/haproxy.log, log->rotateCount is 52
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/haproxy.log.1 does not exist
renaming /var/log/haproxy.log.52.gz to /var/log/haproxy.log.53.gz (rotatecount 52, logstart 1, i 52),
renaming /var/log/haproxy.log.51.gz to /var/log/haproxy.log.52.gz (rotatecount 52, logstart 1, i 51),
renaming /var/log/haproxy.log.50.gz to /var/log/haproxy.log.51.gz (rotatecount 52, logstart 1, i 50),
renaming /var/log/haproxy.log.49.gz to /var/log/haproxy.log.50.gz (rotatecount 52, logstart 1, i 49),
renaming /var/log/haproxy.log.48.gz to /var/log/haproxy.log.49.gz (rotatecount 52, logstart 1, i 48),
renaming /var/log/haproxy.log.47.gz to /var/log/haproxy.log.48.gz (rotatecount 52, logstart 1, i 47),
renaming /var/log/haproxy.log.46.gz to /var/log/haproxy.log.47.gz (rotatecount 52, logstart 1, i 46),
renaming /var/log/haproxy.log.45.gz to /var/log/haproxy.log.46.gz (rotatecount 52, logstart 1, i 45),
renaming /var/log/haproxy.log.44.gz to /var/log/haproxy.log.45.gz (rotatecount 52, logstart 1, i 44),
renaming /var/log/haproxy.log.43.gz to /var/log/haproxy.log.44.gz (rotatecount 52, logstart 1, i 43),
renaming /var/log/haproxy.log.42.gz to /var/log/haproxy.log.43.gz (rotatecount 52, logstart 1, i 42),
renaming /var/log/haproxy.log.41.gz to /var/log/haproxy.log.42.gz (rotatecount 52, logstart 1, i 41),
renaming /var/log/haproxy.log.40.gz to /var/log/haproxy.log.41.gz (rotatecount 52, logstart 1, i 40),
renaming /var/log/haproxy.log.39.gz to /var/log/haproxy.log.40.gz (rotatecount 52, logstart 1, i 39),
renaming /var/log/haproxy.log.38.gz to /var/log/haproxy.log.39.gz (rotatecount 52, logstart 1, i 38),
renaming /var/log/haproxy.log.37.gz to /var/log/haproxy.log.38.gz (rotatecount 52, logstart 1, i 37),
renaming /var/log/haproxy.log.36.gz to /var/log/haproxy.log.37.gz (rotatecount 52, logstart 1, i 36),
renaming /var/log/haproxy.log.35.gz to /var/log/haproxy.log.36.gz (rotatecount 52, logstart 1, i 35),
renaming /var/log/haproxy.log.34.gz to /var/log/haproxy.log.35.gz (rotatecount 52, logstart 1, i 34),
renaming /var/log/haproxy.log.33.gz to /var/log/haproxy.log.34.gz (rotatecount 52, logstart 1, i 33),
renaming /var/log/haproxy.log.32.gz to /var/log/haproxy.log.33.gz (rotatecount 52, logstart 1, i 32),
renaming /var/log/haproxy.log.31.gz to /var/log/haproxy.log.32.gz (rotatecount 52, logstart 1, i 31),
renaming /var/log/haproxy.log.30.gz to /var/log/haproxy.log.31.gz (rotatecount 52, logstart 1, i 30),
renaming /var/log/haproxy.log.29.gz to /var/log/haproxy.log.30.gz (rotatecount 52, logstart 1, i 29),
renaming /var/log/haproxy.log.28.gz to /var/log/haproxy.log.29.gz (rotatecount 52, logstart 1, i 28),
renaming /var/log/haproxy.log.27.gz to /var/log/haproxy.log.28.gz (rotatecount 52, logstart 1, i 27),
renaming /var/log/haproxy.log.26.gz to /var/log/haproxy.log.27.gz (rotatecount 52, logstart 1, i 26),
renaming /var/log/haproxy.log.25.gz to /var/log/haproxy.log.26.gz (rotatecount 52, logstart 1, i 25),
renaming /var/log/haproxy.log.24.gz to /var/log/haproxy.log.25.gz (rotatecount 52, logstart 1, i 24),
renaming /var/log/haproxy.log.23.gz to /var/log/haproxy.log.24.gz (rotatecount 52, logstart 1, i 23),
renaming /var/log/haproxy.log.22.gz to /var/log/haproxy.log.23.gz (rotatecount 52, logstart 1, i 22),
renaming /var/log/haproxy.log.21.gz to /var/log/haproxy.log.22.gz (rotatecount 52, logstart 1, i 21),
renaming /var/log/haproxy.log.20.gz to /var/log/haproxy.log.21.gz (rotatecount 52, logstart 1, i 20),
renaming /var/log/haproxy.log.19.gz to /var/log/haproxy.log.20.gz (rotatecount 52, logstart 1, i 19),
renaming /var/log/haproxy.log.18.gz to /var/log/haproxy.log.19.gz (rotatecount 52, logstart 1, i 18),
renaming /var/log/haproxy.log.17.gz to /var/log/haproxy.log.18.gz (rotatecount 52, logstart 1, i 17),
renaming /var/log/haproxy.log.16.gz to /var/log/haproxy.log.17.gz (rotatecount 52, logstart 1, i 16),
renaming /var/log/haproxy.log.15.gz to /var/log/haproxy.log.16.gz (rotatecount 52, logstart 1, i 15),
renaming /var/log/haproxy.log.14.gz to /var/log/haproxy.log.15.gz (rotatecount 52, logstart 1, i 14),
renaming /var/log/haproxy.log.13.gz to /var/log/haproxy.log.14.gz (rotatecount 52, logstart 1, i 13),
renaming /var/log/haproxy.log.12.gz to /var/log/haproxy.log.13.gz (rotatecount 52, logstart 1, i 12),
renaming /var/log/haproxy.log.11.gz to /var/log/haproxy.log.12.gz (rotatecount 52, logstart 1, i 11),
renaming /var/log/haproxy.log.10.gz to /var/log/haproxy.log.11.gz (rotatecount 52, logstart 1, i 10),
renaming /var/log/haproxy.log.9.gz to /var/log/haproxy.log.10.gz (rotatecount 52, logstart 1, i 9),
renaming /var/log/haproxy.log.8.gz to /var/log/haproxy.log.9.gz (rotatecount 52, logstart 1, i 8),
renaming /var/log/haproxy.log.7.gz to /var/log/haproxy.log.8.gz (rotatecount 52, logstart 1, i 7),
renaming /var/log/haproxy.log.6.gz to /var/log/haproxy.log.7.gz (rotatecount 52, logstart 1, i 6),
renaming /var/log/haproxy.log.5.gz to /var/log/haproxy.log.6.gz (rotatecount 52, logstart 1, i 5),
renaming /var/log/haproxy.log.4.gz to /var/log/haproxy.log.5.gz (rotatecount 52, logstart 1, i 4),
renaming /var/log/haproxy.log.3.gz to /var/log/haproxy.log.4.gz (rotatecount 52, logstart 1, i 3),
renaming /var/log/haproxy.log.2.gz to /var/log/haproxy.log.3.gz (rotatecount 52, logstart 1, i 2),
renaming /var/log/haproxy.log.1.gz to /var/log/haproxy.log.2.gz (rotatecount 52, logstart 1, i 1),
renaming /var/log/haproxy.log.0.gz to /var/log/haproxy.log.1.gz (rotatecount 52, logstart 1, i 0),
renaming /var/log/haproxy.log to /var/log/haproxy.log.1
running postrotate script
running script with arg /var/log/haproxy.log: "
invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
"
removing old log /var/log/haproxy.log.53.gz
error: error opening /var/log/haproxy.log.53.gz: No such file or directory
rotating pattern: /var/log/php7.0-fpm.log weekly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/php7.0-fpm.log
log needs rotating
rotating log /var/log/php7.0-fpm.log, log->rotateCount is 12
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/php7.0-fpm.log.1 does not exist
renaming /var/log/php7.0-fpm.log.12.gz to /var/log/php7.0-fpm.log.13.gz (rotatecount 12, logstart 1, i 12),
renaming /var/log/php7.0-fpm.log.11.gz to /var/log/php7.0-fpm.log.12.gz (rotatecount 12, logstart 1, i 11),
renaming /var/log/php7.0-fpm.log.10.gz to /var/log/php7.0-fpm.log.11.gz (rotatecount 12, logstart 1, i 10),
renaming /var/log/php7.0-fpm.log.9.gz to /var/log/php7.0-fpm.log.10.gz (rotatecount 12, logstart 1, i 9),
renaming /var/log/php7.0-fpm.log.8.gz to /var/log/php7.0-fpm.log.9.gz (rotatecount 12, logstart 1, i 8),
renaming /var/log/php7.0-fpm.log.7.gz to /var/log/php7.0-fpm.log.8.gz (rotatecount 12, logstart 1, i 7),
renaming /var/log/php7.0-fpm.log.6.gz to /var/log/php7.0-fpm.log.7.gz (rotatecount 12, logstart 1, i 6),
renaming /var/log/php7.0-fpm.log.5.gz to /var/log/php7.0-fpm.log.6.gz (rotatecount 12, logstart 1, i 5),
renaming /var/log/php7.0-fpm.log.4.gz to /var/log/php7.0-fpm.log.5.gz (rotatecount 12, logstart 1, i 4),
renaming /var/log/php7.0-fpm.log.3.gz to /var/log/php7.0-fpm.log.4.gz (rotatecount 12, logstart 1, i 3),
renaming /var/log/php7.0-fpm.log.2.gz to /var/log/php7.0-fpm.log.3.gz (rotatecount 12, logstart 1, i 2),
renaming /var/log/php7.0-fpm.log.1.gz to /var/log/php7.0-fpm.log.2.gz (rotatecount 12, logstart 1, i 1),
renaming /var/log/php7.0-fpm.log.0.gz to /var/log/php7.0-fpm.log.1.gz (rotatecount 12, logstart 1, i 0),
renaming /var/log/php7.0-fpm.log to /var/log/php7.0-fpm.log.1
running postrotate script
running script with arg /var/log/php7.0-fpm.log: "
/usr/lib/php/php7.0-fpm-reopenlogs
"
removing old log /var/log/php7.0-fpm.log.13.gz
error: error opening /var/log/php7.0-fpm.log.13.gz: No such file or directory
rotating pattern: /var/log/php7.1-fpm.log weekly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/php7.1-fpm.log
log needs rotating
rotating log /var/log/php7.1-fpm.log, log->rotateCount is 12
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/php7.1-fpm.log.1 does not exist
renaming /var/log/php7.1-fpm.log.12.gz to /var/log/php7.1-fpm.log.13.gz (rotatecount 12, logstart 1, i 12),
renaming /var/log/php7.1-fpm.log.11.gz to /var/log/php7.1-fpm.log.12.gz (rotatecount 12, logstart 1, i 11),
renaming /var/log/php7.1-fpm.log.10.gz to /var/log/php7.1-fpm.log.11.gz (rotatecount 12, logstart 1, i 10),
renaming /var/log/php7.1-fpm.log.9.gz to /var/log/php7.1-fpm.log.10.gz (rotatecount 12, logstart 1, i 9),
renaming /var/log/php7.1-fpm.log.8.gz to /var/log/php7.1-fpm.log.9.gz (rotatecount 12, logstart 1, i 8),
renaming /var/log/php7.1-fpm.log.7.gz to /var/log/php7.1-fpm.log.8.gz (rotatecount 12, logstart 1, i 7),
renaming /var/log/php7.1-fpm.log.6.gz to /var/log/php7.1-fpm.log.7.gz (rotatecount 12, logstart 1, i 6),
renaming /var/log/php7.1-fpm.log.5.gz to /var/log/php7.1-fpm.log.6.gz (rotatecount 12, logstart 1, i 5),
renaming /var/log/php7.1-fpm.log.4.gz to /var/log/php7.1-fpm.log.5.gz (rotatecount 12, logstart 1, i 4),
renaming /var/log/php7.1-fpm.log.3.gz to /var/log/php7.1-fpm.log.4.gz (rotatecount 12, logstart 1, i 3),
renaming /var/log/php7.1-fpm.log.2.gz to /var/log/php7.1-fpm.log.3.gz (rotatecount 12, logstart 1, i 2),
renaming /var/log/php7.1-fpm.log.1.gz to /var/log/php7.1-fpm.log.2.gz (rotatecount 12, logstart 1, i 1),
renaming /var/log/php7.1-fpm.log.0.gz to /var/log/php7.1-fpm.log.1.gz (rotatecount 12, logstart 1, i 0),
renaming /var/log/php7.1-fpm.log to /var/log/php7.1-fpm.log.1
running postrotate script
running script with arg /var/log/php7.1-fpm.log: "
/usr/lib/php/php7.1-fpm-reopenlogs
"
removing old log /var/log/php7.1-fpm.log.13.gz
error: error opening /var/log/php7.1-fpm.log.13.gz: No such file or directory
rotating pattern: /var/log/syslog
after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/syslog
log does not need rotating
rotating pattern: /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/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mail.info
log /var/log/mail.info does not exist -- skipping
considering log /var/log/mail.warn
log /var/log/mail.warn does not exist -- skipping
considering log /var/log/mail.err
log does not need rotating
considering log /var/log/mail.log
log needs rotating
considering log /var/log/daemon.log
log /var/log/daemon.log does not exist -- skipping
considering log /var/log/kern.log
log needs rotating
considering log /var/log/auth.log
log needs rotating
considering log /var/log/user.log
log /var/log/user.log does not exist -- skipping
considering log /var/log/lpr.log
log /var/log/lpr.log does not exist -- skipping
considering log /var/log/cron.log
log /var/log/cron.log does not exist -- skipping
considering log /var/log/debug
log /var/log/debug does not exist -- skipping
considering log /var/log/messages
log /var/log/messages does not exist -- skipping
rotating log /var/log/mail.log, log->rotateCount is 4
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/mail.log.1 does not exist
renaming /var/log/mail.log.4.gz to /var/log/mail.log.5.gz (rotatecount 4, logstart 1, i 4),
renaming /var/log/mail.log.3.gz to /var/log/mail.log.4.gz (rotatecount 4, logstart 1, i 3),
renaming /var/log/mail.log.2.gz to /var/log/mail.log.3.gz (rotatecount 4, logstart 1, i 2),
renaming /var/log/mail.log.1.gz to /var/log/mail.log.2.gz (rotatecount 4, logstart 1, i 1),
renaming /var/log/mail.log.0.gz to /var/log/mail.log.1.gz (rotatecount 4, logstart 1, i 0),
rotating log /var/log/kern.log, log->rotateCount is 4
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/kern.log.1 does not exist
renaming /var/log/kern.log.4.gz to /var/log/kern.log.5.gz (rotatecount 4, logstart 1, i 4),
renaming /var/log/kern.log.3.gz to /var/log/kern.log.4.gz (rotatecount 4, logstart 1, i 3),
renaming /var/log/kern.log.2.gz to /var/log/kern.log.3.gz (rotatecount 4, logstart 1, i 2),
renaming /var/log/kern.log.1.gz to /var/log/kern.log.2.gz (rotatecount 4, logstart 1, i 1),
renaming /var/log/kern.log.0.gz to /var/log/kern.log.1.gz (rotatecount 4, logstart 1, i 0),
rotating log /var/log/auth.log, log->rotateCount is 4
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/auth.log.1 does not exist
renaming /var/log/auth.log.4.gz to /var/log/auth.log.5.gz (rotatecount 4, logstart 1, i 4),
renaming /var/log/auth.log.3.gz to /var/log/auth.log.4.gz (rotatecount 4, logstart 1, i 3),
renaming /var/log/auth.log.2.gz to /var/log/auth.log.3.gz (rotatecount 4, logstart 1, i 2),
renaming /var/log/auth.log.1.gz to /var/log/auth.log.2.gz (rotatecount 4, logstart 1, i 1),
renaming /var/log/auth.log.0.gz to /var/log/auth.log.1.gz (rotatecount 4, logstart 1, i 0),
renaming /var/log/mail.log to /var/log/mail.log.1
renaming /var/log/kern.log to /var/log/kern.log.1
renaming /var/log/auth.log to /var/log/auth.log.1
running postrotate script
running script with arg /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/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
: "
invoke-rc.d rsyslog rotate > /dev/null
"
removing old log /var/log/mail.log.5.gz
error: error opening /var/log/mail.log.5.gz: No such file or directory
rotating pattern: /var/log/ufw.log
weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ufw.log
log needs rotating
rotating log /var/log/ufw.log, log->rotateCount is 4
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/ufw.log.1 does not exist
renaming /var/log/ufw.log.4.gz to /var/log/ufw.log.5.gz (rotatecount 4, logstart 1, i 4),
renaming /var/log/ufw.log.3.gz to /var/log/ufw.log.4.gz (rotatecount 4, logstart 1, i 3),
renaming /var/log/ufw.log.2.gz to /var/log/ufw.log.3.gz (rotatecount 4, logstart 1, i 2),
renaming /var/log/ufw.log.1.gz to /var/log/ufw.log.2.gz (rotatecount 4, logstart 1, i 1),
renaming /var/log/ufw.log.0.gz to /var/log/ufw.log.1.gz (rotatecount 4, logstart 1, i 0),
renaming /var/log/ufw.log to /var/log/ufw.log.1
running postrotate script
running script with arg /var/log/ufw.log
: "
invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
"
removing old log /var/log/ufw.log.5.gz
error: error opening /var/log/ufw.log.5.gz: No such file or directory
rotating pattern: /var/log/unattended-upgrades/unattended-upgrades.log
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
monthly (6 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/unattended-upgrades/unattended-upgrades.log
log /var/log/unattended-upgrades/unattended-upgrades.log does not exist -- skipping
considering log /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
log /var/log/unattended-upgrades/unattended-upgrades-dpkg.log does not exist -- skipping
considering log /var/log/unattended-upgrades/unattended-upgrades-shutdown.log
log does not need rotating
rotating pattern: /var/log/varnish/varnish.log after 1 days (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/varnish/varnish.log
log needs rotating
rotating log /var/log/varnish/varnish.log, log->rotateCount is 7
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
renaming /var/log/varnish/varnish.log.7.gz to /var/log/varnish/varnish.log.8.gz (rotatecount 7, logstart 1, i 7),
renaming /var/log/varnish/varnish.log.6.gz to /var/log/varnish/varnish.log.7.gz (rotatecount 7, logstart 1, i 6),
renaming /var/log/varnish/varnish.log.5.gz to /var/log/varnish/varnish.log.6.gz (rotatecount 7, logstart 1, i 5),
renaming /var/log/varnish/varnish.log.4.gz to /var/log/varnish/varnish.log.5.gz (rotatecount 7, logstart 1, i 4),
renaming /var/log/varnish/varnish.log.3.gz to /var/log/varnish/varnish.log.4.gz (rotatecount 7, logstart 1, i 3),
renaming /var/log/varnish/varnish.log.2.gz to /var/log/varnish/varnish.log.3.gz (rotatecount 7, logstart 1, i 2),
renaming /var/log/varnish/varnish.log.1.gz to /var/log/varnish/varnish.log.2.gz (rotatecount 7, logstart 1, i 1),
renaming /var/log/varnish/varnish.log.0.gz to /var/log/varnish/varnish.log.1.gz (rotatecount 7, logstart 1, i 0),
renaming /var/log/varnish/varnish.log to /var/log/varnish/varnish.log.1
running postrotate script
running script with arg /var/log/varnish/varnish.log: "
if [ -d /run/systemd/system ]; then
systemctl -q is-active varnishlog.service || exit 0
fi
/usr/sbin/invoke-rc.d varnishlog reload > /dev/null
"
removing old log /var/log/varnish/varnish.log.8.gz
error: error opening /var/log/varnish/varnish.log.8.gz: No such file or directory
rotating pattern: /var/log/varnish/varnishncsa.log after 1 days (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/varnish/varnishncsa.log
log needs rotating
rotating log /var/log/varnish/varnishncsa.log, log->rotateCount is 7
dateext suffix '-20190430'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
renaming /var/log/varnish/varnishncsa.log.7.gz to /var/log/varnish/varnishncsa.log.8.gz (rotatecount 7, logstart 1, i 7),
renaming /var/log/varnish/varnishncsa.log.6.gz to /var/log/varnish/varnishncsa.log.7.gz (rotatecount 7, logstart 1, i 6),
renaming /var/log/varnish/varnishncsa.log.5.gz to /var/log/varnish/varnishncsa.log.6.gz (rotatecount 7, logstart 1, i 5),
renaming /var/log/varnish/varnishncsa.log.4.gz to /var/log/varnish/varnishncsa.log.5.gz (rotatecount 7, logstart 1, i 4),
renaming /var/log/varnish/varnishncsa.log.3.gz to /var/log/varnish/varnishncsa.log.4.gz (rotatecount 7, logstart 1, i 3),
renaming /var/log/varnish/varnishncsa.log.2.gz to /var/log/varnish/varnishncsa.log.3.gz (rotatecount 7, logstart 1, i 2),
renaming /var/log/varnish/varnishncsa.log.1.gz to /var/log/varnish/varnishncsa.log.2.gz (rotatecount 7, logstart 1, i 1),
renaming /var/log/varnish/varnishncsa.log.0.gz to /var/log/varnish/varnishncsa.log.1.gz (rotatecount 7, logstart 1, i 0),
renaming /var/log/varnish/varnishncsa.log to /var/log/varnish/varnishncsa.log.1
running postrotate script
running script with arg /var/log/varnish/varnishncsa.log: "
if [ -d /run/systemd/system ]; then
systemctl -q is-active varnishncsa.service || exit 0
fi
/usr/sbin/invoke-rc.d varnishncsa reload > /dev/null
"
removing old log /var/log/varnish/varnishncsa.log.8.gz
error: error opening /var/log/varnish/varnishncsa.log.8.gz: No such file or directory
Mise à part les no such file or directtory qui suppose fortement que le fichier n'existe pas ou plus (j'ai fait du ménage à la main vu que le cron du logrotate n'avait pas l'air de fonctionné) ça sous entenderai que mon problème initial se situe sur le cron qui ne s'effectue pas ?
Cordialement
Ethan7888
Hors ligne
#10 Le 30/04/2019, à 14:36
- bruno
Re : logrotate ne fonctionne pas
Déjà cela commence mal :
Ignoring /etc/logrotate.conf because of bad file mode.
Retour de :
ls -l /etc/logrotate.conf
Ensuite si u as supprimé manuellement des fichiers de logs, tu t'exposes à coup sûr à divers ennuis problème avec logrotate, services qui ne fonctionnent plus car il ne trouvent plus leur(s) fichier(s) de logs, entre autres…
Au passage il est totalement anormal d'avoir PHP 7.1 sur une Ubuntu 16.04 à moins d'avoir utilisé des dépôts tiers qui sont aussi une source de futur problèmes.
#11 Le 30/04/2019, à 14:43
- ethan7888
Re : logrotate ne fonctionne pas
Déjà cela commence mal :
Ignoring /etc/logrotate.conf because of bad file mode.
Retour de :
ls -l /etc/logrotate.conf
Ensuite si u as supprimé manuellement des fichiers de logs, tu t'exposes à coup sûr à divers ennuis problème avec logrotate, services qui ne fonctionnent plus car il ne trouvent plus leur(s) fichier(s) de logs, entre autres…
Au passage il est totalement anormal d'avoir PHP 7.1 sur une Ubuntu 16.04 à moins d'avoir utilisé des dépôts tiers qui sont aussi une source de futur problèmes.
Rebonjour,
Merci encore pour votre retour, en faite, j'ai supprimé les logs car nous n'avions plus de place sur ce serveur, c'est comme cela que nous nous sommes rendu compte que le logrotate avait un soucis
Voici le retour de la commande que vous m'avez demandé:
ls -l /etc/logrotate.conf
-rwxrwxrwx 1 root root 703 May 6 2015 /etc/logrotate.conf
Cordialement
Ethan7888
Hors ligne
#12 Le 30/04/2019, à 15:10
- bruno
Re : logrotate ne fonctionne pas
Est-ce un serveur d'entreprise ?
Peut-on voir plus globalement ce qui se passe dans /etc :
ls -l /etc/
Dernière modification par bruno (Le 30/04/2019, à 15:12)
#13 Le 30/04/2019, à 15:35
- ethan7888
Re : logrotate ne fonctionne pas
Est-ce un serveur d'entreprise ?
Peut-on voir plus globalement ce qui se passe dans /etc :ls -l /etc/
Rebonjour,
Oui c'est un serveur d'entreprise
ls -l /etc/
total 976
-rw-r--r-- 1 root root 3028 Aug 4 2016 adduser.conf
-rw-r--r-- 1 root root 64 Apr 29 17:48 aliases
-rw-r--r-- 1 root root 12288 Mar 7 15:34 aliases.db
drwxr-xr-x 2 root root 4096 Mar 26 10:30 alternatives
drwxr-xr-x 8 root root 4096 Mar 7 15:31 apache2
drwxr-xr-x 3 root root 4096 Aug 4 2016 apm
drwxr-xr-x 3 root root 4096 Mar 7 15:31 apparmor
drwxr-xr-x 8 root root 4096 Mar 7 15:32 apparmor.d
drwxr-xr-x 6 root root 4096 Oct 16 2017 apt
-rw-r--r-- 1 root root 2188 Sep 1 2015 bash.bashrc
-rw-r--r-- 1 root root 45 Aug 12 2015 bash_completion
drwxr-xr-x 2 root root 4096 Mar 7 15:34 bash_completion.d
-rw-r--r-- 1 root root 367 Jan 27 2016 bindresvport.blacklist
drwxr-xr-x 2 root root 4096 Apr 12 2016 binfmt.d
drwxr-xr-x 3 root root 4096 Aug 4 2016 ca-certificates
-rw-r--r-- 1 root root 8464 Mar 7 15:31 ca-certificates.conf
-rw-r--r-- 1 root root 7788 Aug 4 2016 ca-certificates.conf.dpkg-old
drwxr-xr-x 2 root root 4096 Aug 4 2016 calendar
drwxr-xr-x 4 root root 4096 Mar 7 15:34 cloud
drwxr-xr-x 2 root root 4096 Mar 7 15:31 console-setup
drwxr-xr-x 2 root root 4096 Mar 26 10:30 cron.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 cron.daily
drwxr-xr-x 2 root root 4096 Aug 4 2016 cron.hourly
drwxr-xr-x 2 root root 4096 Aug 4 2016 cron.monthly
-rw-r--r-- 1 root root 725 Oct 5 2018 crontab
drwxr-xr-x 2 root root 4096 Mar 7 15:25 cron.weekly
drwxr-xr-x 4 root root 4096 Jul 12 2017 dbus-1
-rw-r--r-- 1 root root 2969 Nov 10 2015 debconf.conf
-rw-r--r-- 1 root root 12 Apr 30 2015 debian_version
drwxr-xr-x 2 root root 4096 Apr 29 17:48 default
-rw-r--r-- 1 root root 604 Jul 2 2015 deluser.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:31 depmod.d
drwxr-xr-x 4 root root 4096 Mar 7 15:31 dhcp
drwxr-xr-x 2 root root 4096 Aug 4 2016 dictionaries-common
drwxr-xr-x 2 root root 4096 Aug 4 2016 discover.conf.d
-rw-r--r-- 1 root root 346 Nov 6 2014 discover-modprobe.conf
drwx------ 2 opendkim opendkim 4096 Dec 7 2016 dkimkeys
drwxr-xr-x 2 root root 4096 Nov 16 13:35 docker
drwxr-xr-x 4 root root 4096 Mar 7 15:24 dpkg
-rw-r--r-- 1 root root 12636 Jun 14 2018 drirc
drwxr-xr-x 3 root root 4096 Aug 4 2016 emacs
-rw-r--r-- 1 root root 312 Feb 10 2018 email-addresses
-rw-r--r-- 1 root root 96 Aug 4 2016 environment
drwxr-xr-x 3 root root 4096 Apr 29 18:02 exim4
-rw-r--r-- 1 root root 9107 Jun 27 2016 ffserver.conf
drwxr-xr-x 4 root root 4096 Dec 7 2016 fonts
-rw-r--r-- 1 root root 620 Aug 4 2016 fstab
-rw-r--r-- 1 root root 280 Jun 20 2014 fuse.conf
-rw-r--r-- 1 root root 2584 Feb 18 2016 gai.conf
drwxr-xr-x 2 root root 4096 Mar 1 2018 glances
drwxr-xr-x 2 root root 4096 Aug 4 2016 groff
-rw-r--r-- 1 root root 937 Apr 29 17:48 group
-rw------- 1 root root 918 Nov 16 13:35 group-
drwxr-xr-x 2 root root 4096 Mar 7 15:31 grub.d
-rw-r----- 1 root shadow 786 Apr 29 17:48 gshadow
-rw------- 1 root root 770 Nov 16 13:35 gshadow-
drwxr-xr-x 3 root root 4096 Aug 4 2016 gss
drwxr-xr-x 4 root root 4096 Oct 4 2018 haproxy
-rw-r--r-- 1 root root 4781 Mar 17 2016 hdparm.conf
-rw-r--r-- 1 root root 92 Oct 22 2015 host.conf
-rw-r--r-- 1 root root 26 Aug 31 2017 hostname
-rw-r--r-- 1 root root 269 Jul 18 2017 hosts
-rw-r--r-- 1 root root 411 Aug 4 2016 hosts.allow
-rw-r--r-- 1 root root 711 Aug 4 2016 hosts.deny
-rw-r--r-- 1 root root 206 Oct 10 2012 idmapd.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:31 ImageMagick-6
drwxr-xr-x 2 root root 4096 Mar 26 10:30 init
drwxr-xr-x 2 root root 4096 Apr 29 17:48 init.d
drwxr-xr-x 5 root root 4096 Mar 7 15:31 initramfs-tools
-rw-r--r-- 1 root root 1748 Feb 4 2016 inputrc
drwxr-xr-x 3 root root 4096 Aug 4 2016 insserv
-rw-r--r-- 1 root root 771 Mar 6 2015 insserv.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:34 insserv.conf.d
drwxr-xr-x 2 root root 4096 Mar 7 15:31 iproute2
drwxr-xr-x 2 root root 4096 Aug 4 2016 iscsi
-rw-r--r-- 1 root root 26 Feb 20 10:40 issue
-rw-r--r-- 1 root root 19 Feb 20 10:40 issue.net
drwxr-xr-x 2 root root 4096 Dec 2 2016 kbd
drwxr-xr-x 5 root root 4096 Mar 7 15:29 kernel
-rw-r--r-- 1 root root 144 Aug 4 2016 kernel-img.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:31 ldap
-rw-r--r-- 1 root root 45879 Apr 29 17:47 ld.so.cache
-rw-r--r-- 1 root root 34 Jan 27 2016 ld.so.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:25 ld.so.conf.d
-rw-r--r-- 1 root root 267 Oct 22 2015 legal
drwxr-xr-x 9 root root 4096 Apr 30 08:18 letsencrypt
-rw-r--r-- 1 root root 191 Jan 19 2016 libaudit.conf
drwxr-xr-x 2 root root 4096 Jul 12 2017 libnl-3
-rw-r--r-- 1 root root 2995 Apr 15 2016 locale.alias
-rw-r--r-- 1 root root 9149 Mar 7 15:30 locale.gen
lrwxrwxrwx 1 root root 32 Mar 7 15:31 localtime -> /usr/share/zoneinfo/Europe/Paris
drwxr-xr-x 3 root root 4096 Aug 4 2016 logcheck
-rw-r--r-- 1 root root 10551 Mar 29 2016 login.defs
-rwxrwxrwx 1 root root 703 May 6 2015 logrotate.conf
drwxrwxrwx 2 root root 4096 Apr 29 17:48 logrotate.d
-rw-r--r-- 1 root root 105 Feb 20 10:40 lsb-release
-rw-r--r-- 1 root root 14867 Apr 12 2016 ltrace.conf
drwxr-xr-x 4 root root 4096 Aug 4 2016 lvm
-r--r--r-- 1 root root 33 Aug 4 2016 machine-id
-rw-r--r-- 1 root root 111 Nov 20 2015 magic
-rw-r--r-- 1 root root 111 Nov 20 2015 magic.mime
-rw-r--r-- 1 root root 13247 Mar 7 15:30 mailcap
-rw-r--r-- 1 root root 449 Oct 30 2015 mailcap.order
-rw-r--r-- 1 root root 10 Apr 29 17:53 mailname
-rw-r--r-- 1 root root 5170 Nov 7 2015 manpath.config
-rw-r--r-- 1 root root 1427 Dec 7 2016 memcached.conf
-rw-r--r-- 1 root root 24241 Oct 30 2015 mime.types
-rw-r--r-- 1 root root 967 Oct 30 2015 mke2fs.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:34 modprobe.d
-rw-r--r-- 1 root root 195 Aug 4 2016 modules
drwxr-xr-x 2 root root 4096 Mar 7 15:26 modules-load.d
lrwxrwxrwx 1 root root 19 Aug 4 2016 mtab -> ../proc/self/mounts
drwxr-xr-x 3 root root 4096 Mar 7 15:34 mysql
-rw-r--r-- 1 root root 8338 Mar 29 2016 nanorc
-rw-r--r-- 1 root root 767 Oct 25 2014 netconfig
drwxr-xr-x 7 root root 4096 Mar 20 17:36 network
drwxr-xr-x 3 root root 4096 Mar 7 15:30 NetworkManager
-rw-r--r-- 1 root root 91 Oct 22 2015 networks
drwxr-xr-x 2 root root 4096 Aug 4 2016 newt
-rw-r--r-- 1 root root 497 May 4 2014 nsswitch.conf
drwxr-xr-x 2 root root 4096 Dec 7 2016 openal
drwxr-xr-x 3 root root 4096 Dec 7 2016 opendkim
-rw-r--r-- 1 root root 2241 Dec 7 2016 opendkim.conf
drwxr-xr-x 2 root root 4096 Aug 4 2016 opt
lrwxrwxrwx 1 root root 21 Feb 20 10:40 os-release -> ../usr/lib/os-release
-rw-r--r-- 1 root root 552 Mar 16 2016 pam.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:31 pam.d
-rw-r--r-- 1 root root 2005 Apr 29 17:48 passwd
-rw------- 1 root root 1954 Mar 1 2018 passwd-
drwxr-xr-x 4 root root 4096 Dec 7 2016 perl
drwxr-xr-x 7 root root 4096 Mar 26 10:29 php
drwxr-xr-x 3 root root 4096 Aug 4 2016 pm
-rw-r--r-- 1 root root 350 Aug 4 2016 popularity-contest.conf
drwxr-xr-x 2 root root 4096 Apr 29 17:47 postfix
drwxr-xr-x 4 root root 4096 Aug 4 2016 ppp
-rw-r--r-- 1 root root 575 Oct 22 2015 profile
drwxr-xr-x 2 root root 4096 Mar 7 15:34 profile.d
-rw-r--r-- 1 root root 2932 Oct 25 2014 protocols
drwxr-xr-x 2 root root 4096 Mar 7 15:32 pulse
drwxr-xr-x 2 root root 4096 Dec 7 2016 python
drwxr-xr-x 2 root root 4096 Mar 7 15:27 python2.7
drwxr-xr-x 2 root root 4096 Aug 4 2016 python3
drwxr-xr-x 2 root root 4096 Mar 7 15:31 python3.5
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc0.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc1.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc2.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc3.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc4.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc5.d
drwxr-xr-x 2 root root 4096 Apr 29 17:48 rc6.d
-rwxr-xr-x 1 root root 306 Aug 4 2016 rc.local
drwxr-xr-x 2 root root 4096 Mar 7 15:25 rcS.d
-rw-r--r-- 1 root root 1889 Dec 10 2015 request-key.conf
drwxr-xr-x 2 root root 4096 Dec 14 2017 request-key.d
drwxr-xr-x 5 root root 4096 Mar 7 15:31 resolvconf
lrwxrwxrwx 1 root root 29 Aug 4 2016 resolv.conf -> ../run/resolvconf/resolv.conf
-rwxr-xr-x 1 root root 268 Nov 10 2015 rmt
-rw-r--r-- 1 root root 887 Oct 25 2014 rpc
-rw-r--r-- 1 root root 1371 Jan 27 2016 rsyslog.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:34 rsyslog.d
-rw-r--r-- 1 root root 4038 Mar 29 2016 securetty
drwxr-xr-x 4 root root 4096 Mar 7 15:26 security
drwxr-xr-x 2 root root 4096 Aug 4 2016 selinux
-rw-r--r-- 1 root root 10368 Oct 2 2015 sensors3.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:32 sensors.d
-rw-r--r-- 1 root root 19605 Oct 25 2014 services
drwxr-xr-x 2 root root 4096 Aug 4 2016 sgml
-rw-r----- 1 root shadow 1221 Apr 29 17:48 shadow
-rw------- 1 root root 1221 Apr 29 17:48 shadow-
-rw-r--r-- 1 root root 87 Dec 7 2016 shells
drwxr-xr-x 2 root root 4096 Jul 12 2017 skel
drwxr-xr-x 2 root root 4096 Mar 7 15:31 ssh
drwxr-xr-x 4 root root 4096 Mar 7 15:31 ssl
-rw-r--r-- 1 root root 46 Dec 13 2016 subgid
-rw------- 1 root root 20 Aug 4 2016 subgid-
-rw-r--r-- 1 root root 46 Dec 13 2016 subuid
-rw------- 1 root root 20 Aug 4 2016 subuid-
drwxr-xr-x 2 root root 4096 Mar 7 15:33 subversion
-r--r----- 1 root root 755 Aug 17 2016 sudoers
drwxr-x--- 2 root root 4096 Mar 7 15:31 sudoers.d
-rw-r--r-- 1 root root 2127 Oct 1 2018 sysctl.conf
drwxr-xr-x 2 root root 4096 Mar 7 15:31 sysctl.d
drwxr-xr-x 5 root root 4096 Mar 7 15:26 systemd
drwxr-xr-x 2 root root 4096 Aug 4 2016 terminfo
-rw-r--r-- 1 root root 13 Mar 7 15:31 timezone
drwxr-xr-x 2 root root 4096 Apr 12 2016 tmpfiles.d
-rw-r--r-- 1 root root 1260 Mar 16 2016 ucf.conf
drwxr-xr-x 4 root root 4096 Mar 7 15:31 udev
drwxr-xr-x 3 root root 4096 Aug 4 2016 ufw
-rw-r--r-- 1 root root 338 Nov 18 2014 updatedb.conf
drwxr-xr-x 3 root root 4096 Mar 7 15:34 update-manager
drwxr-xr-x 2 root root 4096 Mar 7 15:34 update-motd.d
drwxr-xr-x 2 root root 4096 Mar 7 15:34 varnish
-rw-r--r-- 1 root root 51 Feb 19 2016 vdpau_wrapper.cfg
drwxr-xr-x 2 root root 4096 Dec 2 2016 vim
lrwxrwxrwx 1 root root 23 Aug 4 2016 vtrgb -> /etc/alternatives/vtrgb
drwxr-xr-x 2 root root 4096 Mar 7 15:34 w3m
-rw-r--r-- 1 root root 4942 Jun 14 2016 wgetrc
drwxr-xr-x 7 root root 4096 Mar 7 15:34 X11
drwxr-xr-x 3 root root 4096 Mar 7 15:32 xdg
drwxr-xr-x 2 root root 4096 Aug 4 2016 xml
-rw-r--r-- 1 root root 477 Jul 19 2015 zsh_command_not_found
Hors ligne
#14 Le 30/04/2019, à 15:45
- bruno
Re : logrotate ne fonctionne pas
Je te conseille de faire appel à un adminsys professionnel.
Il y a potentiellement d'autres soucis sur ce serveur : utilisation de dépôts non officiels, utilisation de chmod abusifs sur des dossiers et fichiers système, etc.
En attendant remet des droits d'accès correct sur les fichiers et dossier de logrotate :
sudo chmod 755 /etc/logrotate.d
sudo chmod 644 /etc/logrotate.conf
Pages : 1