By: kirk sullivan user 29 May 2020 at 2:46 a.m. CDT

4 Responses
kirk sullivan gravatar
Needing to set a rolling file appender, and see one reference in the docs: https://gluu.org/docs/gluu-server/4.0/operation/logs/#overview talking about an original log4j file "/opt/jetty-9.4/temp/jetty-localhost-8082-identity.war-_identity-any-8516765662711672787.dir" But it's not clear what to do from this in the doc: "Move a copy of log4j2.xml to any location outside the temp directory, then specify the new filepath in the externalLoggerConfiguration oxAuth JSON setting." Am I missing some other doc that helps tell what to do?

By Mohib Zico staff 29 May 2020 at 2:48 a.m. CDT

Mohib Zico gravatar
Hey, >> Needing to set a rolling file appender, There is a script named 'logmanager.sh' inside `/opt/gluu/bin/`; you can try to run that from root cron. See how things go please.

By kirk sullivan user 29 May 2020 at 3:41 a.m. CDT

kirk sullivan gravatar
but doesn't script just clean up log files? I want to set up a rolling file appender that will rotate logs so that it's not necessary to do any kind of cleanup

By Mohib Zico staff 29 May 2020 at 3:46 a.m. CDT

Mohib Zico gravatar
>> but doesn't script just clean up log files? It does but older one. Read the script ( it's simple bash ) and test by yourself please.

By kirk sullivan user 29 May 2020 at 5:04 a.m. CDT

kirk sullivan gravatar
will do,thanks