How do I change the log size of catalina.out?
Please see the steps below.
*** LOG ROTATE STEPS ****
1. SSH to the root prompt of the API Portal
2. Create the file /etc/logrotate.d/levelPortal with the below contents; this will rotate the catalina log file once it reaches 100MB
/opt/Deployments/lrs/server/logs/catalina.out {
copytruncate
size 100M
rotate 10
compress
missingok
}
3. Run the following command:
chmod 644 /etc/logrotate.d/levelPortal
4. You can force the log rotation by running this command:
logrotate -f /etc/logrotate.d/levelPortal