First time using logrotate, I'm trying to keep Tomcat logs to only have last 30 days worth in the directory regardless of size, job to be run every month.
Am I able to accomplish this with the script below?
/opt/tomcat/logs/*.log
/opt/tomcat/logs/*.log.gz
{
missingok
monthly
rotate 30
notifempty
}