Re: Managing + Appending Log Files (alfresco.log, share.log and solr.log)
- I would say that to keep all files in a single one is not a good idea, because each log file corresponds to different applications (alfresco.log to alfresco repository, share.log to Share client, solr4.log to SOLR). Do not mix them.
- Each of these log files are rotated (and truncated) everyday, so a simple crontab script may be valid for purging or zipping. The only log that is not truncated by default is catalina.out. Check out the link Martin Ehe for logrotating this file.
- And as commented by Martin, repeating errors fill up your logs, i.e. if you have problems with your indices and SOLR can not access each 15s to Alfresco repository (this is classic). Sometimes localhost_access_log* may be large due an intensive SOLR use.
- Finally, another strategy is to define custom log4j.properties with appenders with a maximum size for each application.