The question is little bit long! Let me explain with the example below. I
have a log-rotation configuration file in /etc/logrotate.d/
which is used for uwsgi:
"/var/log/uwsgi/*.log" "/var/log/uwsgi/*/*.log" {
copytruncate
daily
rotate 5
compress
delaycompress
missingok
notifempty
}
Let's say I have about 12 uwsgi modules and I want to keep one the uwsgi app log files more than others so I have a configuration like below:
/var/log/uwsgi/app/MY_APP.log {
daily
missingok
rotate 60
compress
delaycompress
notifempty
create 0640 www-data adm
}
Now the question is how should I create log rotate as above and keep *
for 11 other modules. I don't want to create 11 log rotate with the same configuration, What should I do to overwrite just one module?