Re: Tomcat Stop Daily log Rotation for all logs

2018-07-09 Thread sri devops
Thanks Mark, that worked !!!



On Mon, Jul 9, 2018 at 3:27 PM Mark Thomas  wrote:

> On 09/07/18 21:06, sri devops wrote:
> >  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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat Stop Daily log Rotation for all logs

2018-07-09 Thread Mark Thomas
On 09/07/18 21:06, sri devops wrote:
>  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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat Stop Daily log Rotation for all logs

2018-07-09 Thread 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.


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