Question
Intel
IN
Last activity: 22 Aug 2017 4:12 EDT
Log file rolling over
Hi Team,
I want the log files to be rolled over day wise or size wise. How can we do this in Pega 7.2.2? Please assist
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
PEG
PL
this might help :
https://community.pega.com/sites/default/files/help_v719/procomhelpmain.htm
Any specific question on above link?
PEG
PL
Hi Narhar,
You will need to update the parameter settings in prlogging.xml.
Here is the link for your reference.
https://community.pega.com/sites/default/files/help_v722/procomhelpmain.htm
Pegasystems Inc.
IN
Hi Narhar,
Please see the below link in addition to above links, in which there is an example to roll logs based on size and time.
https://docs-previous.pega.com/system-administration/84/customizing-logs
Virtusa Consulting UK
GB
You will need to update the parameters in the prlogging.xml file for your server.
To refer the parameter details, please refer the link in the above reply.
Intel
IN
Hi Team,
I tried adding the following code as mentioned in the link (https://docs-previous.pega.com/system-administration/84/customizing-logs) but that is creating the PegaRules logs in logs folder instead of the actual location i.e inside prweb folder like (\work\Catalina\localhost\prweb)
- <appender name="dailyRollFile" class="com.pega.apache.log4j.DailyRollingFileAppender">
- <param name="DatePattern" value="'.'yyyy-MM-dd-HH-mm"/>
- <param name="File" value="logs/PegaRULES-.log"/>
- <layout class="com.pega.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{ABSOLUTE} [%20.20t] (%30.30c{3}) %-5p - %m%n"/>
- </layout>
- </appender>
Also its generating logs for every 10 minute, i want daily basis. Please assist
Pegasystems Inc.
IN
Hello Nahar,
As you have mentioned below parameter it's generating log files inside logs folder instead of prweb folder .
- <param name="File" value="logs/PegaRULES-.log"/> .
By default in 7.2.2 appender will let you generate the log files on daily and size basis ,you no need to change the appanders .
Copy below appenders in your prlogging.xml file and suppress all other appenders ,restart the server .
Hello Nahar,
As you have mentioned below parameter it's generating log files inside logs folder instead of prweb folder .
- <param name="File" value="logs/PegaRULES-.log"/> .
By default in 7.2.2 appender will let you generate the log files on daily and size basis ,you no need to change the appanders .
Copy below appenders in your prlogging.xml file and suppress all other appenders ,restart the server .
Log file will be rolled over based on below conditions
1)If the file size is more than 500 MB.
2)If the time stamp of current log file is more than 24 hrs.
And it will make sure the log files will be generated inside \work\Catalina\localhost\prweb folder .
Thanks & Regards,
Arun
Pegasystems Inc.
IN
Hello Nahar,
Please find the default prlogging.xml from 7.2.1 for your reference .
Thanks,
Arun
Pegasystems Inc.
IN
Hello Nahar,
Let us know if you have made the changes and provide us your findings.
Regards,
Arun
Intel
IN
Hi Arun,
Yes it worked now, i did the configuration what you told, actually that was the original configuration of the file.
Thanks for you support :)
JPMorgan Chase & Company
US