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.
KunwarsalujaAccepted solution
Employee
May 3, 2018 4:42 PM UTC

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

KunwarsalujaAccepted solution
Employee
May 3, 2018 4:42 PM UTC

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.

Translate
manojsingh3
Level 2
May 3, 2018 1:31 PM UTC

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.

Translate
smacdonald2008
Level 10
May 3, 2018 1:23 PM UTC

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

Translate
manojsingh3
Level 2
May 3, 2018 1:17 PM UTC

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

Translate
smacdonald2008
Level 10
May 3, 2018 1:11 PM UTC

Do you see the folder where logs are stored?

Translate