Hi
Can anyone advise on how to enable rotatelogs in particular for tomcat-stdOut.log? We recently migrated our QA environment to 19.2 and I noticed that our tomcat-stdOut.log doesn't seem to be rotated at all. Reason to say the log rotation is not in place because I'm simply not able to to find tomcat-stdOut.log with date suffix.
Appreciate any assistance that can be provided or reference ot any documentation to configure rotatelogs enable.
Thanks
Julie
Discussion posts and replies are publicly visible
Hi Julie,
I assume that your servers are running on Windows OS.
Start the tomcat manually using start-appserver.bat and you may find some error messages which will help you to find the issue.
Make sure that the latest MS Visual C++ Redistributable is installed on the server. If not download and install it on the server and try to start again.
Hi Edwin, What's the solution for Linux box ?
Hi Sunil,
Check whether the Apache's rotatelogs is available or not in the environment. If not, install it using any package manager available in your environment. It is available as a part of apache2-utils.
Hi Edwin, Let me check on that. Thanks for your support.
If already available and if the logs are not rotating, then open the start-appserver.sh and provide the path of the rotatelogs program. Appian will use that to rotate the log files.
On Ubuntu, I use Logrotate.
Create the following file: /etc/logrotate.d/appian-tomcat
Paste the following:
/<APPIAN_HOME>/logs/tomcat-StdOut.log{ copytruncate daily rotate 30 compress missingok size 100M }
To perform a manual rotation:
logrotate -vf /etc/logrotate.d/appian-tomcat
Here are some additional notes on logrotate: https://www.digitalocean.com/community/tutorials/how-to-manage-logfiles-with-logrotate-on-ubuntu-16-04