Problem in Apache Sling Logging Writer Configuration to restrict the number of log files. | Community
Skip to main content
radhikak8817019
New Participant
October 16, 2015
Solved

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

  • October 16, 2015
  • 3 replies
  • 1639 views

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.
Best answer by Lokesh_Shivalingaiah

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

3 replies

Lokesh_Shivalingaiah
New Participant
October 16, 2015

Is the log rotation happening on a daily basis ??

radhikak8817019
New Participant
October 16, 2015

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.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
October 16, 2015

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