cancel
Showing results for 
Search instead for 
Did you mean: 

Size of tomcat log huge

kludikovsky
Champ in-the-making
Champ in-the-making
I'm quite new to Alfresco, so apologize if I am asking dumb questions.

My log-files "localhost_access_log.20yy-mm-dd.txt" located in in /opt/alfresco-5.0.a/tomcat/logs have a size of about 50 - 100 MB every day.

And it is obvious that there is a log-entry every 15 seconds with about 55 lines each which are identical (execpt the time of course).

I have added the top of the log-file here, because it's repeating always.

My question, how can this be reduced?
Is there a configuration setting to disable this logging?
What's the purpose of this in an 'operational' setting? (Clear it makes sense during development).

Any hints appreciated, as I could not find anything here or elsewhere.
4 REPLIES 4

parashiftaustra
Confirmed Champ
Confirmed Champ
This is probably Solr talking to Alfresco via loopback, which updates every few seconds. You can turn off access logs completely by modifying server.xml and commenting out or removing the following directive (and restarting tomcat):

<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" />

Hi Peter,
thanks a lot, this will help.

Just an add-on question: is there a question to just exclude/disable the solr log entries?

Regards,
Kurt

If I don't want to turn off access logs, but keep them 7 days instead. Is there a way to do this instead of creating a cron job?

parashiftaustra
Confirmed Champ
Confirmed Champ
Hi Kurt,
The only real way to do this would be to extend the AccessLogValve to include a better filter based upon the servlet or ip address.