Rotating catalina.out with Webmin

2004-11-15 Thread Carlos
Hi Forum, Could someone recommend settings for using the log rotation of Webmin in order to rotate catalina.out (any cautionary measures)? I just created an entry in Webmin to rotate the catalina.out file weekly with all the default settings (keeping the last four copies). Are there any

Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
$/logs/%Y-%m-%d.catalina.out /dev/null 21 this will rotate the logs daily Filip - Original Message - From: Carlos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 15, 2004 2:05 PM Subject: Rotating catalina.out with Webmin Hi Forum, Could someone recommend settings

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Shapira, Yoav
this all applies to Tomcat 5.0.x and older, not to 5.5 and newer) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:19 PM To: Tomcat Users List Subject: Re: Rotating catalina.out with Webmin if you

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Default Should not this maintain the file handle? -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:19 PM To: Tomcat Users List Subject: Re: Rotating catalina.out with Webmin if you dont get webmin fixed, I recommend cronolog instead

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
I found that logrotate is the easiest. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Filip, I set-up the Webmin Log Rotation entry to the following: 1) Re-create

Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 15, 2004 2:28 PM Subject: RE: Rotating catalina.out with Webmin Hi Filip, I set-up the Webmin Log Rotation entry to the following: 1) Re-create log file after rotation? Yes, with mode and owned by user and group 2) Store old

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
catalina.out with Webmin I found that logrotate is the easiest. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Filip, I set-up the Webmin Log Rotation entry to the following

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
} -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 3:37 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Phillip, Since Webmin uses logrotate could I just create a simple entry with Webmin? Or do I need to specify other settings

Re: Rotating catalina.out with Webmin

2004-11-15 Thread erh
On Mon, Nov 15, 2004 at 02:36:57PM -0600, Filip Hanik - Dev wrote: nope, the moment you execute the mv the file handle has moved. switch to cronolog to save you some time, cronolog might recreate the file for you to, so no handle is ever lost, try it before you come back to the list :)

Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
: Re: Rotating catalina.out with Webmin On Mon, Nov 15, 2004 at 02:36:57PM -0600, Filip Hanik - Dev wrote: nope, the moment you execute the mv the file handle has moved. switch to cronolog to save you some time, cronolog might recreate the file for you to, so no handle is ever lost, try

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Hi Phillip, Why do you re-create the file? Is it not enough to truncate it? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:53 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin I don't know how to use webadmin. I

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
I don't remember. I think logrotate recreates it anyway. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 4:55 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Phillip, Why do you re-create the file? Is it not enough

Re: Rotating catalina.out with Webmin

2004-11-15 Thread erh
On Mon, Nov 15, 2004 at 03:39:01PM -0600, Filip Hanik - Dev wrote: this was not the case when using a java.io.FileOutputStream(), so I assume you tried and verified this :) You are confused. It _is_ the case with FileOutputStream. The only way it could be otherwise is if the output

Re: rotating catalina.out

2003-06-24 Thread John Turner
[mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 3:23 PM To: Tomcat Users List Subject: RE: rotating catalina.out I figured this one out. on Unix I simply pipe the catalina.sh command to /usr/bin/cronolog and it rotates the log for me www.cronolog.org for more info, or contact me Filip

RE: rotating catalina.out

2003-06-23 Thread Filip Hanik
To: Tomcat Users List Subject: RE: rotating catalina.out log4j works for your own code, but if you are a sysadmin, and need to rotate catalina.out (which is essentially System.out) then you are toast :-) I am gonna ask the developers to switch to log4j instead of System.out, they might give me

RE: rotating catalina.out

2003-06-23 Thread Filip Hanik
, 2003 1:55 PM To: Tomcat Users List Subject: RE: rotating catalina.out log4j works for your own code, but if you are a sysadmin, and need to rotate catalina.out (which is essentially System.out) then you are toast :-) I am gonna ask the developers to switch to log4j instead

rotating catalina.out

2003-06-12 Thread Filip Hanik
did anyone figure out how to rotate this bad boy and the localhost_log without shutting down tomcat? Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: rotating catalina.out

2003-06-12 Thread Eric J. Pinnell
I was going to experiment with it next week. It would be nice to do it within Tomcat and stay away from the Unix-y stuff. That way it would also work for the windows users. I have a feeling the Unix-y stuff will have to suffice for a bit. -e On Thu, 12 Jun 2003, Filip Hanik wrote: did

RE: rotating catalina.out

2003-06-12 Thread Shapira, Yoav
Subject: Re: rotating catalina.out I was going to experiment with it next week. It would be nice to do it within Tomcat and stay away from the Unix-y stuff. That way it would also work for the windows users. I have a feeling the Unix-y stuff will have to suffice for a bit. -e On Thu, 12 Jun 2003

RE: rotating catalina.out

2003-06-12 Thread Filip Hanik
] Sent: Thursday, June 12, 2003 1:12 PM To: Tomcat Users List Subject: RE: rotating catalina.out Howdy, Why not use the nightly rollover mechanism used for servlet logs, localhost logs, etc. also for catalina.out? Yoav Shapira Millennium ChemInformatics -Original Message- From

RE: rotating catalina.out

2003-06-12 Thread Shapira, Yoav
Millennium ChemInformatics -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:24 PM To: Tomcat Users List Subject: RE: rotating catalina.out what mechanism is that? It looks like the logs are being held by an open file descriptor, so rotating

RE: rotating catalina.out

2003-06-12 Thread Filip Hanik
: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:27 PM To: Tomcat Users List Subject: RE: rotating catalina.out Howdy, It seems you're right -- I hadn't looked at the code for a while. This is why I suggested tomcat use the log4j file rollover mechanism, which is very

RE: rotating catalina.out

2003-06-12 Thread Yoav Shapira
Howdy, I am gonna ask the developers to switch to log4j instead of System.out, they might give me the finger :) I wouldn't give you the finger ;) There was a discussion in the winter about making tomcat 5.x use log4j internally. Yoav Shapira = Yoav Shapira [EMAIL PROTECTED]

RE: rotating catalina.out

2003-06-12 Thread Ben Ricker
Subject: RE: rotating catalina.out Howdy, It seems you're right -- I hadn't looked at the code for a while. This is why I suggested tomcat use the log4j file rollover mechanism, which is very robust. But I didn't get much positive feedback, and I certainly don't have

Re: rotating catalina.out

2003-06-12 Thread Tim Funk
the bandwidth to do it myself right now... Yoav Shapira Millennium ChemInformatics -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:24 PM To: Tomcat Users List Subject: RE: rotating catalina.out what mechanism is that? It looks like the logs

Re: rotating catalina.out

2003-06-12 Thread Eric J. Pinnell
the bandwidth to do it myself right now... Yoav Shapira Millennium ChemInformatics -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:24 PM To: Tomcat Users List Subject: RE: rotating catalina.out what mechanism

Re: rotating catalina.out

2003-06-12 Thread Tim Funk
ChemInformatics -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:24 PM To: Tomcat Users List Subject: RE: rotating catalina.out what mechanism is that? It looks like the logs are being held by an open file descriptor, so rotating

Re: rotating catalina.out

2003-06-12 Thread Yoav Shapira
Howdy, OTOH - After the startup message - nothing really should be written to it without making an effort to do so. So only badly written code which uses System.out/err will be the victim. This is the incentive to use a real logging package. Allowing rotation allows reward of bad code. I

Rotating catalina.out.

2003-06-10 Thread Eric J. Pinnell
Hi, Our catalina.out gets rather large. We would like to keep the data. Does anybody have a good solution for rotating it w/o restarting the application? Or can that even be done? I was thinking of renaming the file and then touching catalina.out to create a new file but I have some concerns

Re: Rotating catalina.out.

2003-06-10 Thread Eric J. Pinnell
I forgot to add that I am running Solaris, not Linux, and logrotate is not part of the OS. -e On Tue, 10 Jun 2003, Eric J. Pinnell wrote: Hi, Our catalina.out gets rather large. We would like to keep the data. Does anybody have a good solution for rotating it w/o restarting the

Re: Rotating catalina.out.

2003-06-10 Thread Tim Funk
In windows - your screwed. In unix: (YMMV) cp -f catalina.out catalina.out-old cat /dev/null catalina.out In a nutshell - wacky every developer upside the head which uses System.out, System.err. Then make them use a logging package such as log4j, commons-logging, ... And catalina.out becomes

RE: Rotating catalina.out.

2003-06-10 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
to update the script when you install a new tomcat -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 11:00 AM To: Tomcat Users List Subject: Re: Rotating catalina.out. In windows - your screwed. In unix: (YMMV) cp -f catalina.out catalina.out-old cat

RE: Rotating catalina.out.

2003-06-10 Thread Shapira, Yoav
Millennium ChemInformatics -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out. Something I have always wanted to try was to modify this line of the catalina.sh

RE: Rotating catalina.out.

2003-06-10 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
: Rotating catalina.out. Howdy, Can you submit your proposed modification to the script, and what it would require (e.g. downloading rotatelogs and placing it somewhere)? I think catalina.out rotation is a generically useful enough feature to make its way into the tomcat distribution eventually

RE: Rotating catalina.out.

2003-06-10 Thread Shapira, Yoav
: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:47 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out. Will do. I have to do a new test server install over the next week anyway, so I will work through the various permutations and post

Re: Rotating catalina.out.

2003-06-10 Thread John Turner
(HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out. Something I have always wanted to try was to modify this line of the catalina.sh $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \ -Djava.security.manager