I installed the configuration file for uwsgi logrotate. When I tested it, it seemed like it would work.
logrotate -dvf /etc/logrotate.d/uwsgi reading config file /etc/logrotate.d/uwsgi reading config info for "/var/log/uwsgi/*.log" Handling 1 logs rotating pattern: "/var/log/uwsgi/*.log" forced from command line (5 rotations) empty log files are rotated, old logs are removed considering log /var/log/uwsgi/uwsgi.log log needs rotating rotating log /var/log/uwsgi/uwsgi.log, log->rotateCount is 5 dateext suffix '-20131211' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed copying /var/log/uwsgi/uwsgi.log to /var/log/uwsgi/uwsgi.log-20131211 truncating /var/log/uwsgi/uwsgi.log compressing log with: /bin/gzip
But the cron job was done and nothing happened. What could be wrong? My record
"/var/log/uwsgi/*.log" { copytruncate daily dateext rotate 5 compress }
In cron log i see
Dec 11 03:45:01 myhost run-parts(/etc/cron.daily)[930]: finished logrotate
Can I get more detailed information about what happened somewhere - a detailed output of the logrotate task?
cron centos logrotate uwsgi
Jayadevan
source share