Question
HSBC
GB
Last activity: 29 Nov 2023 8:53 EST
Change the default pega logs directory to a different directory
HI everyone,
I am running pega 8.8.2 on a google kubernetes engine. Now I need to change the default pega logs to a different folder.
I have added a javaoptions like this -Dpega.logdir=/logs/dev. But if I check this folder no logs are getting generated.
I have checked the POD logs where I found this error Current "user.dir" (default directory) is: / Current pega.logdir is: /logs/dev Located PegaRULES logging configuration: file:/usr/local/tomcat/webapps/prweb/WEB-INF/classes/prlog4j2.xml WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2023-11-22 08:09:33,394 main ERROR Cannot access RandomAccessFile java.io.FileNotFoundException: /logs/dev/PegaRULES.log (Permission denied) java.io.FileNotFoundException: /logs/dev/PegaRULES.log (Permission denied)
***Edited by Moderator Marije to add Capability tags***