cancel
Showing results for 
Search instead for 
Did you mean: 

how to control size of logs files

swingman
Champ in-the-making
Champ in-the-making
Hi…
I have a problem with a file by the name catalina.out being filled with data from alfresco.   It is increasing by almost 100M everyday which is threatening to fill my disk in the near future. Daily logs files are also stored. I would like to manage these files. First of all I would like to set the maximum size of catalina.out to be 10M and to only save the latest 5 days log files.

Anyone with an idea about what I should do?
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
It rather depends upon what is being logged.    

100M per day is not normal behaviour.   Especially in catalina.out since alfresco logging is normally in alfresco.log.

Has someone turned on debug level logging and left it on?   If so turn down the log level.  
Or are errors being reported in which case work out and fix what the problem is.

There's various options for configuring the logging settings including rolling file appenders.  Look here to get started http://logging.apache.org/log4j/1.2/index.html

swingman
Champ in-the-making
Champ in-the-making
I forgot to mention that I am new to both unix and alfresco så the whole mission seems tough and I am ot so sure of the steps.  I w'd really appreciate if someone did give more detailed instructions. I am however thankful för what mrogers has written.
Thanx!