sri devops
2018-07-09 20:06:37 UTC
Hello All,
I have apache-tomcat-8.5.23 installed and running on RHEL 7.x86_64 and
OpenJDK version "1.8.0_151".
I wanted to manage log rotation using log rotate, however tomcat performs
its own log rotation which interacts badly with log rotate. How can i turn
OFF all tomcat log rotation ? so tomcat will just logs but not perform
daily rotation to any of the log files.
Here's what i have in *logging.properties* file
handler = 1catalina.org.apache.juli.AsyncFileHandler,
2localhost.org.apache.juli.AsyncFileHandler,
3manager.org.apache.juli.AsyncFileHandler,
4host-manager.org.apache.juli.AsyncFileHandler,
java.util.logging.ConsoleHandler
.handlers = 1catalina.org.apache.juli.AsyncFileHandler,
java.util.logging.ConsoleHandler
Here are my logs at */opt/apache-tomcat-8.5.23/log*s directory.
catalina.2018-07-08.log
catalina.2018-07-09.log
catalina.out
host-manager. 2018-07-09.log
localhost. 2018-07-09.log
localhost_access_log. 2018-07-08.txt
localhost_access_log. 2018-07-09.txt
manager. 2018-07-09.log
Thanks,
Srinath
I have apache-tomcat-8.5.23 installed and running on RHEL 7.x86_64 and
OpenJDK version "1.8.0_151".
I wanted to manage log rotation using log rotate, however tomcat performs
its own log rotation which interacts badly with log rotate. How can i turn
OFF all tomcat log rotation ? so tomcat will just logs but not perform
daily rotation to any of the log files.
Here's what i have in *logging.properties* file
handler = 1catalina.org.apache.juli.AsyncFileHandler,
2localhost.org.apache.juli.AsyncFileHandler,
3manager.org.apache.juli.AsyncFileHandler,
4host-manager.org.apache.juli.AsyncFileHandler,
java.util.logging.ConsoleHandler
.handlers = 1catalina.org.apache.juli.AsyncFileHandler,
java.util.logging.ConsoleHandler
Here are my logs at */opt/apache-tomcat-8.5.23/log*s directory.
catalina.2018-07-08.log
catalina.2018-07-09.log
catalina.out
host-manager. 2018-07-09.log
localhost. 2018-07-09.log
localhost_access_log. 2018-07-08.txt
localhost_access_log. 2018-07-09.txt
manager. 2018-07-09.log
Thanks,
Srinath