Discussion

2
Replies
289
Views
Anton Ulizko (AntonU05)
SberTech

SberTech
RU
AntonU05 Member since 2015 3 posts
SberTech
Posted: April 9, 2016
Last activity: April 13, 2016
Posted: 9 Apr 2016 7:46 EDT
Last activity: 13 Apr 2016 10:05 EDT
Closed

Reduce size of log files

Hello. I found such quote: 

The default prlogging.xml file in the Pega 7 Platform contains the following appenders that can be configured:

Note: Appenders use the format: com.pega.pegarules.priv.util.<appendername>

  • FileAppenderPega
    • Creates a log file based on date
    • Can be configured to not roll a log file
  • RollingFileAppenderPega
    • Creates a new log file once the current log file reaches MaxFileSize
    • During new log file creation, if the MaxBackupIndex threshold is reached for this appender, the system deletes the oldest log file
  • DailyRollingFileAppenderPega
    • Creates a new log file based on date
    • If set, the MaxFileSize parameter is ignored
    • During new log file creation, if the MaxBackupIndex threshold is reached for this appender, the system deletes the oldest log file
  • DailySizeRollingFileAppenderPega
    • Creates a new log file either based on date or when the current log file reaches MaxFileSize
    • During new log file creation, if the MaxBackupIndex threshold is reached for this appender, the system deletes the oldest log file of the day

Appender parameters

The following parameters that can be configured for each appender:

  • FileNamePattern - a required parameter that determines the name of the generated log files
    • For naming conflicts in new log files, the most recent file is appended with .1 and the old file is renamed and is appended with .1, .2, etc.
  • MaxFileSize - an optional parameter that determines the maximum size of a log file
    • The value can be listed either in MB or KB
    • The default value is 500MB
  • MaxBackupIndex - an optional parameter that determines the number of backup files allowed
    • The default value is Integer.MAX_Value
    • To set this parameter, add the parameter to the appender, for example: <param name="MaxBackupIndex" value="10" />

 But my version of pega is 6.3 SP1. So, the question is:how can i apply it to my version and can i apply it at all ? Or my prlogging.xml doesn't have place for such kind of settings

System Administration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.