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?
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.
Thx @Kishan Sharma but it not helped me , because after DailyRollingFileAppender i have problem with synchronization... Do you have any way for archiving ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.