Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence: Log storage time

Islam September 17, 2021

Hey!
Please tell me, my logs are stored for less than a day, can I increase the storage time of the logs? For example, set to store logs for a week? If so, where can I do it?

I tell about atlassian-confluence.log etc

Can I customize file archiving?

1 answer

1 accepted

1 vote
Answer accepted
Kishan Sharma
Community Champion
September 17, 2021

Hi @Islam 

You can configure time based log retention through Confluence's WEB-INF/classes/log4j.properties file.

Please refer the comments in this suggestion, you will know how you can retain atlassian-confluence.log for specific days.

Islam September 17, 2021

Thx @Kishan Sharma  but it not helped me , because after DailyRollingFileAppender i have problem with synchronization... Do you have any way for archiving ?

Kishan Sharma
Community Champion
September 17, 2021

By setting rollOver you can implement roll over behavior to avoid synchronization issue and by configuring setMaxBackupIndex in the RollingFileAppender, you can set the maximum number of backup files to keep around. If you want to keep the logs for longer time period, you can create a shell script to copy the backed up files to some other location for future reference and setup a cronjob to run the script on a schedule as per your requirement.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events