I have a big problem with files generated in alfresco (alfresco.log, share.log and solr.log) and tomcat (tomcat/logs/*). They seem to grow and rotate indefinitely and I don't know where rotation parameters are configured. I wish to use system's logrotate (example: /etc/logrotate.d/alfresco) but I think it will conflict with the existing default rotation of those files.
How can I configure log rotation defining max number of files and compression?