cancel
Showing results for 
Search instead for 
Did you mean: 

I want to delete alfresco log files timely like after 10 days or a month. Is this Possible?

kamendrasingh
Confirmed Champ
Confirmed Champ

I want to delete alfresco log files timely like after 10 days or a month. Is this Possible?..

The logs will take more memory.

2 REPLIES 2

kintu_barot
Star Collaborator
Star Collaborator

Yes, it is possible. You can create a cronjob to delete the log files on your required interval of time.

Another solution is the 'logrotattion' which will help you manage your logs in a better way.

Create new 'alfresco-logs' file at /etc/logrotate.d/ with the following content inside

/opt/<Alfresco-home>/tomcat/logs/catalina.out {
copytruncate
daily
compress
rotate 5
missingok
size 50M
}

Note: Change the path of Alfresco home in the above code.

Regards,

Kintu

ContCentric

Regards,
Kintu

cesarista
World-Class Innovator
World-Class Innovator

Hi:

For other logs you can check some of the recipes on this blog post (included the above one):

Basic maintenaince of your Alfresco logs - Simple tips about Alfresco logs - zylk 

Kind regards.

--C.