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

Logs Redirection

SA-9562

Summary



User wants to redirect the following Pega logs to another directory.

PegaRULES-ALERT-2015-Mar-25.log
PegaRULES-ALERTSECURITY-2014-Aug-09.log
PegaRULES-2015-Mar-25.log
PegaRULES-SERVICES-PAL-2014-Aug-09.csv


Resolution



The explanation for this behaviour is as follows:

The prlogging.xml (which comes up with prconfig.xml) will have several appender config entries for corresponding Pega logs file. Something like below.

<appender name="PEGA" class="com.pega.pegarules.priv.util.FileAppenderPega">
        <param name="FileNamePattern" value="'@{web.tmpdir}/PegaRULES-'yyyy-MMM-dd'.log'"/>



In this case, PegaRULES log with date stamp gets created in web.tmpdir folder which is inside a tomcat work directory. 

In the below case, it will get created in D drive logs directory.

<appender name="PEGA" class="com.pega.pegarules.priv.util.FileAppenderPega">
        <param name="FileNamePattern" value="'D:logs/PegaRULES-'yyyy-MMM-dd'.log'"/>


User will have to prefix the custom directory to the log name and repeat this step for the corresponding log appenders. 


https://pdn.pega.com/system-operations/how-to-customize-logs-with-the-prloggingxml-file

Please note that a server restart is required to apply these changes.

Published June 12, 2015 - 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