Question
Nordea
SE
Last activity: 12 Jan 2018 11:26 EST
Remove Pega Logs
Hi,
Is there any way to delete pega logs periodically? Do I have to write agent activity and delete those files separately or there is any out of the box feature available?
***Edited by Moderator Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Depending on the version of Pega, you could configure prlogging.xml so that x number of log files are generated, with each log filling up until a size limit is reached. After the specified number of logs has been reached the oldest logs are overwritten. If you're interested in this, I can find the details (which will depend on the version of Pega in use).
Beyond that, I don't believe there is anything ootb that does this.
Pegasystems Inc.
US
Hi Anand,
You can go through the suggestion provided by Harikumar in the below discussion which might help you,
https://pdn.pega.com/community/pega-product-support/question/log-files-0
Regards
Mahesh
Nordea
SE
Yes i have already seen the post but then it has to do something at app server side. do we have anything OOTB in pega or writing the custom agent activity is the only option?
Pegasystems Inc.
US
I don't see any OOTB way to achieve this functionality, may be others can help you if they are aware of it. I feel you should write the custom agent activity to perform this operation.
Accepted Solution
Pegasystems Inc.
US
Depending on the version of Pega, you could configure prlogging.xml so that x number of log files are generated, with each log filling up until a size limit is reached. After the specified number of logs has been reached the oldest logs are overwritten. If you're interested in this, I can find the details (which will depend on the version of Pega in use).
Beyond that, I don't believe there is anything ootb that does this.
Nordea
SE
Thanks for the response!
Unfortunately overriding the log file won't serve the purpose here because our requirement is to delete pega log files after certain period of time as it contain some customer related data. But thanks again for providing an alternative solution.
Pegasystems Inc.
US
As the override of logs doesn't satisfy your requirement then their is no ootb way to achieve this requirement.