Skip to main content
radhikak8817019
Level 3
Oct 16, 2015 2:28 AM UTC
Solved

Problem in Apache Sling Logging Writer Configuration to restrict the number of log files.

Hi ,

We need to restrict the number of  history.log files to only 10. For this we configured the Apache Sling Logging Writer Configuration with parameters as shown below : 

Log File : logs/history.log

Number of Log Files : 10

Log File Threshold :   { "'.'yyyy-MM-dd" (daily log rotation)}

Issue : history.log files are created based on date but logs folder contains more than 10 files.

As per my understanding it is the OOTB but its also not working on vanilla AEM 5.6 version.

Please suggest if we are missing something.

 

Thanks In Advance,

/RK

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

if you are seeing more than 10 files, please raise a support ticket and have a look at it.

3 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

if you are seeing more than 10 files, please raise a support ticket and have a look at it.

Translate
radhikak8817019
Level 3
Oct 16, 2015 2:28 AM UTC

Yes, log files are created based on dates.

but the number of log files are not restricted to the size we mentioned in number.

Also its written as note that the file number parameter will be ignored if we give the threshold value in terms of date and time.  Kindly pour in your suggestion.

Translate
Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:28 AM UTC

Is the log rotation happening on a daily basis ??

Translate