36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
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-11-18 03:45
|
|
Last rotated at 2025-11-17 03:00
|
|
log needs rotating
|
|
considering log /var/log/nginx/logrotate.log
|
|
Now: 2025-11-18 03:45
|
|
Last rotated at 2025-11-17 03:00
|
|
log needs rotating
|
|
rotating log /var/log/nginx/error.log, log->rotateCount is 30
|
|
dateext suffix '-20251118'
|
|
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 '-20251118'
|
|
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-20251118
|
|
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-20251118
|
|
creating new /var/log/nginx/logrotate.log mode = 0640 uid = 101 gid = 101
|
|
running postrotate script
|
|
removing old log /var/log/nginx/error.log-20251018.gz
|
|
removing old log /var/log/nginx/logrotate.log-20251018.gz
|