reading config file /etc/logrotate.d/nginx olddir is now /var/log/nginx Reading state from file: /var/lib/logrotate/logrotate.status Allocating hash table for state file, size 64 entries Creating new state Creating new state Handling 1 logs rotating pattern: /var/log/nginx/*.log after 1 days (30 rotations) olddir is /var/log/nginx, empty log files are not rotated, old logs are removed considering log /var/log/nginx/error.log Now: 2025-05-01 03:45 Last rotated at 2025-04-30 03:45 log needs rotating considering log /var/log/nginx/logrotate.log Now: 2025-05-01 03:45 Last rotated at 2025-04-30 03:45 log needs rotating rotating log /var/log/nginx/error.log, log->rotateCount is 30 dateext suffix '-20250501' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' compressing log with: /bin/gzip rotating log /var/log/nginx/logrotate.log, log->rotateCount is 30 dateext suffix '-20250501' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' compressing log with: /bin/gzip running prerotate script renaming /var/log/nginx/error.log to /var/log/nginx/error.log-20250501 creating new /var/log/nginx/error.log mode = 0640 uid = 101 gid = 101 renaming /var/log/nginx/logrotate.log to /var/log/nginx/logrotate.log-20250501 creating new /var/log/nginx/logrotate.log mode = 0640 uid = 101 gid = 101 running postrotate script removing old log /var/log/nginx/error.log-20250401.gz removing old log /var/log/nginx/logrotate.log-20250401.gz