Requirement:
We are noticing the log file in one of our environments contains logs for the last 24 hours whereas other environments have log entries for days. Is there a configuration setting that controls the amount of data stored in the jasperserver.log file?
Solution:
The logging properties and settings that you can change and configure are in the log4j2.properties file under the WEB-INF folder. For example, the below configuration keeps the logs active for 30 days:
appender.fileout.filePattern=${log4j:configParentLocation}/logs/jasperserver.%d{dd-MMM}.log.gz appender.fileout.policies.size.type = TimeBasedTriggeringPolicy appender.fileout.strategy.max = 30
If you are modifying this file, make sure to back up your existing file and kindly note a server restart would be required to save the changes from this file.
_____________________________________________________________________________________________________________________________________________________________
Ref. Case #02200452
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now