Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Level 10

Is the log rotation happening on a daily basis ??

Avatar

Level 3

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.

Avatar

Correct answer by
Level 10

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