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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.