uwsgi logrotate not working

2.3k views Asked by At

I have set up the configuration file for uwsgi logrotate. When I tested it, it seemed it will 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 executed and nothing happened. What could be wrong? My entry is

"/var/log/uwsgi/*.log" {
    copytruncate
    daily
    dateext
    rotate 5
    compress
    }

In cron log I can see

Dec 11 03:45:01 myhost run-parts(/etc/cron.daily)[930]: finished logrotate

Can I get more details about "what happened" somewhere - a detailed output of the logrotate job?

1

There are 1 answers

0
Jayadevan On BEST ANSWER

I tried adding

missingok

and that seems to have worked.