<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to better configure log rotation in Alfresco? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293063#M246193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I configure log rotation defining max number of files and compression?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 20:51:10 GMT</pubDate>
    <dc:creator>brgsousa</dc:creator>
    <dc:date>2013-09-30T20:51:10Z</dc:date>
    <item>
      <title>How to better configure log rotation in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293063#M246193</link>
      <description>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 th</description>
      <pubDate>Mon, 30 Sep 2013 20:51:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293063#M246193</guid>
      <dc:creator>brgsousa</dc:creator>
      <dc:date>2013-09-30T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to better configure log rotation in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293064#M246194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since Alfresco uses log4j for logging, you have some choices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This solution gives you the opportunity to limit the file size and to decide the number of backup files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;log4j.appender.R.MaxFileSize=100KB&lt;BR /&gt;# Keep one backup file&lt;BR /&gt;&lt;BR /&gt;log4j.appender.R.MaxBackupIndex=1&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I prefer the DailyRollingFileAppender that rolls each day on a new file&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;# LOG4J daily rolling log files configuration&lt;BR /&gt;log4j.rootLogger=DEBUG, RollingAppender&lt;BR /&gt;&lt;BR /&gt;log4j.appender.RollingAppender=org.apache.log4j.DailyRollingFileAppender&lt;BR /&gt;&lt;BR /&gt;log4j.appender.RollingAppender.File=app.log&lt;BR /&gt; &lt;BR /&gt;log4j.appender.RollingAppender.DatePattern='.'yyyy-MM-dd&lt;BR /&gt;&lt;BR /&gt;log4j.appender.RollingAppender.layout=org.apache.log4j.PatternLayout&lt;BR /&gt;&lt;BR /&gt;log4j.appender.RollingAppender.layout.ConversionPattern=[%p] %d %c %M - %m%n&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can chack log4j page for more info at &lt;/SPAN&gt;&lt;A href="http://logging.apache.org/" rel="nofollow noopener noreferrer"&gt;http://logging.apache.org/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to modify Tomcat's log you need to refer to Tomcat Juli, which performs all logging operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 10:47:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293064#M246194</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2013-11-13T10:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to better configure log rotation in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293065#M246195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the information, but which of the 4 log4j.properties files is the most important one to update?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've updated:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./tomcat/webapps/share/WEB-INF/classes/log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./solr4/log4j-solr.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.MaxFileSize=1000KB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.MaxBackupIndex=5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that sufficient to stop the infinitely growing log files I have?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 19:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-better-configure-log-rotation-in-alfresco/m-p/293065#M246195</guid>
      <dc:creator>davidbalt</dc:creator>
      <dc:date>2016-05-20T19:10:00Z</dc:date>
    </item>
  </channel>
</rss>

