Tag: tomcat
Forward Tomcat logs to remote syslog
For example: /etc/rsyslog.d/tomcat.rulebaserule=:%level:word% %rest:rest% For example: /etc/rsyslog.d/30-tomcat.conf Part Meaning sudo Run the command with superuser privileges semanage fcontext SELinux management command to define file contexts…

Create script to stop and start Tomcat service
create a script that automatically stops and starts the Tomcat service on Linux
Configure Log rotation of Tomcat
Configuring log rotation in Tomcat by a script in logrotate/d.