Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How can I prevent log file to exceed maximum size

Shallu_Rohilla
Level 4
Level 4

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

1 Accepted Solution
ramyar64794761
Correct answer by
Level 2
Level 2

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

View solution in original post

1 Reply
ramyar64794761
Correct answer by
Level 2
Level 2

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

View solution in original post