pi@emonpi:~ $ /usr/sbin/logrotate -d /etc/logrotate.conf WARNING: logrotate in debug mode does nothing except printing debug messages! Consider using verbose mode (-v) instead if this is not what you want. reading config file /etc/logrotate.conf including /etc/logrotate.d reading config file 00_defaults warning: 'size' overrides previously specified 'daily' reading config file 00_olddir olddir is now /var/log.old error: 00_olddir:17 keyword 'renamecopy' not properly separated, found 0 error: found error in file 00_olddir, skipping reading config file alternatives reading config file apache2 reading config file apt reading config file btmp reading config file dpkg reading config file emoncms olddir is now /var/log.old/emoncms error: emoncms:6 olddir /var/log.old/emoncms and log file /var/log/emoncms/apache2-error.log are on different devices removing last 1 log configs error: found error in file emoncms, skipping reading config file emonhub olddir is now /var/log.old/emonhub error: emonhub:10 unknown group 'emonhub' error: found error in /var/log/emonhub/emonhub.log , skipping removing last 1 log configs error: found error in file emonhub, skipping reading config file log2ram reading config file mariadb reading config file mosquitto warning: 'size' overrides previously specified 'daily' reading config file ppp reading config file redis-server reading config file rsyslog reading config file ufw reading config file wtmp Reading state from file: /var/lib/logrotate/status error: error opening state file /var/lib/logrotate/status: Permission denied Allocating hash table for state file, size 64 entries Handling 15 logs rotating pattern: /var/log/logrotate/*.log 102400 bytes (7 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/logrotate/logrotate.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log needs rotating rotating log /var/log/logrotate/logrotate.log, log->rotateCount is 7 dateext suffix '-20221217' 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/logrotate/logrotate.log.7.gz to /var/log/logrotate/logrotate.log.8.gz (rotatecount 7, logstart 1, i 7), renaming /var/log/logrotate/logrotate.log.6.gz to /var/log/logrotate/logrotate.log.7.gz (rotatecount 7, logstart 1, i 6), renaming /var/log/logrotate/logrotate.log.5.gz to /var/log/logrotate/logrotate.log.6.gz (rotatecount 7, logstart 1, i 5), renaming /var/log/logrotate/logrotate.log.4.gz to /var/log/logrotate/logrotate.log.5.gz (rotatecount 7, logstart 1, i 4), renaming /var/log/logrotate/logrotate.log.3.gz to /var/log/logrotate/logrotate.log.4.gz (rotatecount 7, logstart 1, i 3), renaming /var/log/logrotate/logrotate.log.2.gz to /var/log/logrotate/logrotate.log.3.gz (rotatecount 7, logstart 1, i 2), renaming /var/log/logrotate/logrotate.log.1.gz to /var/log/logrotate/logrotate.log.2.gz (rotatecount 7, logstart 1, i 1), renaming /var/log/logrotate/logrotate.log.0.gz to /var/log/logrotate/logrotate.log.1.gz (rotatecount 7, logstart 1, i 0), log /var/log/logrotate/logrotate.log.8.gz doesn't exist -- won't try to dispose of it copying /var/log/logrotate/logrotate.log to /var/log/logrotate/logrotate.log.1 truncating /var/log/logrotate/logrotate.log rotating pattern: /var/log/alternatives.log monthly (12 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/alternatives.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/log/apache2/*.log after 1 days (14 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/apache2/access.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) considering log /var/log/apache2/error.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) considering log /var/log/apache2/other_vhosts_access.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) not running prerotate script, since no logs will be rotated not running postrotate script, since no logs were rotated rotating pattern: /var/log/apt/term.log monthly (12 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/apt/term.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/log/apt/history.log monthly (12 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/apt/history.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/log/btmp monthly (1 rotations) empty log files are rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/btmp Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/log/dpkg.log monthly (12 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/dpkg.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/log/log2ram.log after 1 days (7 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/log2ram.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/lib/mysql/mysqld.log /var/log/mysql/mysql.log /var/lib/mysql/mariadb.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log monthly (6 rotations) empty log files are not rotated, only log files >= 52428800 bytes are rotated, log files >= 524288000 are rotated earlier, old logs are removed considering log /var/lib/mysql/mysqld.log log /var/lib/mysql/mysqld.log does not exist -- skipping Creating new state considering log /var/log/mysql/mysql.log log /var/log/mysql/mysql.log does not exist -- skipping Creating new state considering log /var/lib/mysql/mariadb.log log /var/lib/mysql/mariadb.log does not exist -- skipping Creating new state considering log /var/log/mysql/mysql-slow.log log /var/log/mysql/mysql-slow.log does not exist -- skipping Creating new state considering log /var/log/mysql/mariadb-slow.log log /var/log/mysql/mariadb-slow.log does not exist -- skipping Creating new state considering log /var/log/mysql/error.log log /var/log/mysql/error.log does not exist -- skipping Creating new state not running postrotate script, since no logs were rotated rotating pattern: /var/log/mosquitto/mosquitto.log 102400 bytes (7 rotations) empty log files are rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/mosquitto/mosquitto.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log size is below the 'size' threshold) rotating pattern: /var/log/ppp-connect-errors weekly (4 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/ppp-connect-errors log /var/log/ppp-connect-errors does not exist -- skipping Creating new state rotating pattern: /var/log/redis/redis-server*.log weekly (12 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/redis/redis-server.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating pattern: /var/log/syslog /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, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/syslog Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log needs rotating considering log /var/log/mail.info log /var/log/mail.info does not exist -- skipping Creating new state considering log /var/log/mail.warn log /var/log/mail.warn does not exist -- skipping Creating new state considering log /var/log/mail.err log /var/log/mail.err does not exist -- skipping Creating new state considering log /var/log/mail.log log /var/log/mail.log does not exist -- skipping Creating new state considering log /var/log/daemon.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log needs rotating considering log /var/log/kern.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) considering log /var/log/auth.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) considering log /var/log/user.log Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) considering log /var/log/lpr.log log /var/log/lpr.log does not exist -- skipping Creating new state considering log /var/log/cron.log log /var/log/cron.log does not exist -- skipping Creating new state considering log /var/log/debug Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) considering log /var/log/messages Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated) rotating log /var/log/syslog, log->rotateCount is 4 dateext suffix '-20221217' 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/syslog.4.gz to /var/log/syslog.5.gz (rotatecount 4, logstart 1, i 4), renaming /var/log/syslog.3.gz to /var/log/syslog.4.gz (rotatecount 4, logstart 1, i 3), renaming /var/log/syslog.2.gz to /var/log/syslog.3.gz (rotatecount 4, logstart 1, i 2), renaming /var/log/syslog.1.gz to /var/log/syslog.2.gz (rotatecount 4, logstart 1, i 1), renaming /var/log/syslog.0.gz to /var/log/syslog.1.gz (rotatecount 4, logstart 1, i 0), log /var/log/syslog.5.gz doesn't exist -- won't try to dispose of it rotating log /var/log/daemon.log, log->rotateCount is 4 dateext suffix '-20221217' 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/daemon.log.4.gz to /var/log/daemon.log.5.gz (rotatecount 4, logstart 1, i 4), renaming /var/log/daemon.log.3.gz to /var/log/daemon.log.4.gz (rotatecount 4, logstart 1, i 3), renaming /var/log/daemon.log.2.gz to /var/log/daemon.log.3.gz (rotatecount 4, logstart 1, i 2), renaming /var/log/daemon.log.1.gz to /var/log/daemon.log.2.gz (rotatecount 4, logstart 1, i 1), renaming /var/log/daemon.log.0.gz to /var/log/daemon.log.1.gz (rotatecount 4, logstart 1, i 0), log /var/log/daemon.log.5.gz doesn't exist -- won't try to dispose of it renaming /var/log/syslog to /var/log/syslog.1 creating new /var/log/syslog mode = 0640 uid = 0 gid = 4 renaming /var/log/daemon.log to /var/log/daemon.log.1 creating new /var/log/daemon.log mode = 0640 uid = 0 gid = 4 running postrotate script running script with args /var/log/syslog /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 : " /usr/lib/rsyslog/rsyslog-rotate " rotating pattern: /var/log/ufw.log weekly (4 rotations) empty log files are not rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/ufw.log log /var/log/ufw.log does not exist -- skipping Creating new state not running postrotate script, since no logs were rotated rotating pattern: /var/log/wtmp monthly (1 rotations) empty log files are rotated, only log files >= 1048576 bytes are rotated, log files >= 256000 are rotated earlier, old logs are removed considering log /var/log/wtmp Creating new state Now: 2022-12-17 14:51 Last rotated at 2022-12-17 14:00 log does not need rotating (log has already been rotated)