Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Pega log files occupy a large amount of disk space



Pega log files occupy a large amount of disk space.
The requirement is to configure the log files such that they purge after some time.

Error Messages

Not Applicable

Steps to Reproduce

Not Applicable

Root Cause

Not Applicable


Perform the following local-change:
  1. Configure the log files to roll to a new log based on the size. The old data will have an index number appended to it.
  2. Specify the maximum number of these indexes to limit the total amount of logs stored.
  3. Specify the appender class in prlogging.xml in addition to the parameters included, for example:

    <appender name="PEGA" class="com.pega.pegarules.priv.util.RollingFileAppenderPega">
        <param name="MaxBackupIndex" value="9"/>
        <param name="MaxFileSize" value="100MB" />
        <param name="FileNamePattern" value="'@{web.tmpdir}/PegaRULES-'yyyy-MMM-dd'.log'"/>
        <layout class="com.pega.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>

Published December 25, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us