In OpenBSD, there's no logrotate
in ports, and newsyslog
seems to have limited features as far as monthly rotation of a huge number of log files is concerned.
I have a lot of domains, a huge number of nginx log-files names like /var/www/logs/*/*.{access,error}.log
.
I'm thinking a small shell script and cronjob. What would be the easiest way to rotate them all monthly, and append the prior month to the filename?