AEM 6.1 - Size based log rotation is not maintaining more than 21 files on server. | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunwarsaluja

This should be a bug in Apache Sling logger module. I tested it quickly and even if you set 50 as the 'org.apache.sling.commons.log.file.number' property, It still rotates over 21 logs + the current error.log

I'd say open a case with Adobe to get more clarity on this.

5 replies

smacdonald2008
Level 10
May 3, 2018

Do you see the folder where logs are stored?

manojsingh3
Level 2
May 3, 2018

Yes Scott logs folder is under crx-quickstart only and all the logs are stored there.

smacdonald2008
Level 10
May 3, 2018

That doc looks old -- see this one - it may help-- Rotate request.log and access.log

manojsingh3
Level 2
May 3, 2018

Hi Scott - My problem is not that log file is not rotating. It's rotating correctly but since I have chosen rotation based on size and wanted 50 number of files to be created. But after 21 files it stops creating the new and kicking out the old one.

KunwarsalujaAdobe EmployeeAccepted solution
Adobe Employee
May 3, 2018

This should be a bug in Apache Sling logger module. I tested it quickly and even if you set 50 as the 'org.apache.sling.commons.log.file.number' property, It still rotates over 21 logs + the current error.log

I'd say open a case with Adobe to get more clarity on this.