Tuesday, July 12, 2016

Reducing Log File Size in Alfresco

Newer versions of Alfresco will create certain log files by default, including a daily log file that is regularly larger than 100+ MB:  the <CATALINA_HOME>/logs/localhost_access_logYYYY-MM-DD.txt log file.


You can prevent this log file from being created by editing the <CATALINA_HOME>/conf/server.xml file and commenting out the following section:

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t &quot;%r&quot; %s %b" />

Once this section is commented out, restart Alfresco, and the localhost_access_log files will no longer be created.

No comments:

Post a Comment