Clarity logs stop updating and are empty some time after restart, what could be the reason for this?
Release: Any Supported Release
There are two possible reasons for an application log such as app-ca.log or bg-ca.log to stop updating:
If the above Workaround I only fixes the issue temporarily, and after a while the logs stop updating, we recommend looking into the custom jobs running on your environment. We have had issues in which custom java jobs use Clarity log4j.jar and this can lead to issues with logging
To prove this is the case:
a. Stop the suspect job from running and restart the services
b. Ensure the log is updating
c. Wait for some time and see if the log stops updating
Our recommendations to avoid issues due to custom jobs are:
1. Try using the standard Java IO stream, or entries to the database as logging instead of the existing log4j.jar.
2. Alternatively, disable the logging on your custom job for now until you are able to rework it to avoid the log corruption. This should allow you to still use the job while keeping the environment stable.