Question

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***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
December 29, 2017 - 9:51am

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.

Comments

Keep up to date on this post and subscribe to comments

December 29, 2017 - 8:26am

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

December 29, 2017 - 9:40am
Response to Mahesh Midthuru

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?

December 29, 2017 - 9:49am
Response to AnandP

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.

December 29, 2017 - 9:51am
Response to AnandP

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.

December 29, 2017 - 10:16am
Response to NickLoving_GCS

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.

December 29, 2017 - 11:17am
Response to AnandP

As the override of logs doesn't satisfy your requirement then their is no ootb way to achieve this requirement.