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, Even am facing the same issue in 18.4. Looking forward for the solution.
We're running Cloud HA 19.2 and we do not have the same issue. We have the STDOUT log files without a date suffix and a STDOUT log file with the date suffix. Maybe contact Appian support to see if there is an issue with your environment or the logging configuration ?
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
Hi Edwin
Our on-prem Appian server is running on Linux actually which you have kindly provided recommendation below. Thanks, much appreciated.
You can find this information in the documentation here: https://docs.appian.com/suite/help/19.2/Logging.html#log-rotation