Discussion:
Tomcat Stop Daily log Rotation for all logs
sri devops
2018-07-09 20:06:37 UTC
Permalink
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
Mark Thomas
2018-07-09 20:27:23 UTC
Permalink
Post by sri devops
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.
Set rotatable=false

i.e.
1catalina.org.apache.juli.AsyncFileHandler.rotatable = false

And so on for the other log files.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
sri devops
2018-07-09 22:39:29 UTC
Permalink
Thanks Mark, that worked !!!
Post by Mark Thomas
Post by sri devops
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
Post by sri devops
OFF all tomcat log rotation ? so tomcat will just logs but not perform
daily rotation to any of the log files.
Set rotatable=false
i.e.
1catalina.org.apache.juli.AsyncFileHandler.rotatable = false
And so on for the other log files.
Mark
---------------------------------------------------------------------
Loading...