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

After upgrade to Pega 7.1.8 logs are not generating properly

SA-11469

Summary



After upgrade to Pega 7.1.8 split schema, the prlogging.xml file to specify the file name and path as below, but user notices that PegaRULES and PegaRULES-ALERT is written to single file in home directory:

<appender name="PEGA" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
<param name="File" value="/opt/logs/PegaRULES.log"/>
<param name="MaxFileSize" value="50MB" />
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
</layout>
</appender>

<appender name="ALERT" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
<param name="File" value="/opt/logs/PegaRULES-ALERT.log"/>
<param name="MaxFileSize" value="50MB" />
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>


Error Messages



Not Applicable.

Steps to Reproduce



Start Pega 7.1.8 system with customized prlogging.xml file.

Root Cause



The root cause of this problem is defect/misconfiguration in the operating environment. The changes to the prlogging.xml file are not correct.  To use the DailySizeRollingFileAppenderPega class then one must include a date pattern either by adding a DatePattern parameter or by using a FileNamePattern parameter with the data pattern included within in it instead of a File parameter. To make the log files to rollover then one must use a different appender class such as the com.pega.apache.log4j.RollingFileAppender class.

Resolution



This issue is resolved by making the following change to the operating environment: 

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

<appender name="ALERT" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
<param name="FileNamePattern" value="/opt/logs/PegaRULES-ALERT-'yyyy-MMM-dd'.log"/>
<param name="MaxFileSize" value="50MB" />
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>





 

Published July 27, 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