Size of tomcat log huge
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2015 09:30 AM
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.
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.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2015 09:01 PM
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 "%r" %s %b" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2015 08:04 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2015 01:57 PM
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2015 07:14 PM
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.
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.