How can I prevent log file to exceed maximum size | Community
Skip to main content
Level 4
October 16, 2015
Solved

How can I prevent log file to exceed maximum size

  • October 16, 2015
  • 1 reply
  • 1364 views

Hi,

On my production/QA environment, sometimes my error.log file grows upto 3 GB which makes it difficult to download

Can I divide error.log file for a particular day each into equal sizes say MAX - 2 MB.

Regards,

Shallu Rohilla

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 ramyareddyg

Hi,

You can configure the size of the error.log in OSGI Configuration Manager(/system/console/configMgr). Look for "Apache Sling Logging Writer Configuration". You can set the size of the file in "Log File Threshold" property.  A size limit can be specified setting a pure number indicating the number of bytes or a number with a size indicator KB, MB, or GB (case is ignored).


Thanks,
Ramya

1 reply

ramyareddygAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

You can configure the size of the error.log in OSGI Configuration Manager(/system/console/configMgr). Look for "Apache Sling Logging Writer Configuration". You can set the size of the file in "Log File Threshold" property.  A size limit can be specified setting a pure number indicating the number of bytes or a number with a size indicator KB, MB, or GB (case is ignored).


Thanks,
Ramya