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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
kamendrasingh
Active Member II

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

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
kintu_barot
Senior Member

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

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
ContCentric
cesarista
Advanced

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

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.