Re: Automatically compressing localhost_access_log after rotation

2017-08-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 8/4/17 5:08 AM, Martin Knoblauch wrote: > On Thu, Aug 3, 2017 at 7:16 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Martin, >> >> On 8/3/17 5:47 AM, Martin

Re: Automatically compressing localhost_access_log after rotation

2017-08-04 Thread Mark H. Wood
On 8/3/17 5:47 AM, Martin Knoblauch wrote: > is there a way to compress the localhost_access_log.#.txt file > automatically after rotation? There is, but maybe not one built into Tomcat. I have a daily cron job to run a script which looks for older logs and ZIPs them: LOGDIR=/var/log/tomcat

Re: Automatically compressing localhost_access_log after rotation

2017-08-04 Thread Martin Knoblauch
On Thu, Aug 3, 2017 at 9:43 PM, Leon Rosenberg wrote: > On Thu, Aug 3, 2017 at 8:16 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > Martin, > > > > On 8/3/17 5:47 AM, Martin Knoblauch wrote: > > > is there a way to

Re: Automatically compressing localhost_access_log after rotation

2017-08-04 Thread Martin Knoblauch
On Thu, Aug 3, 2017 at 7:16 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Martin, > > On 8/3/17 5:47 AM, Martin Knoblauch wrote: > > is there a way to compress the localhost_access_log.#.txt file > > automatically after r

Re: Automatically compressing localhost_access_log after rotation

2017-08-03 Thread Leon Rosenberg
On Thu, Aug 3, 2017 at 8:16 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Martin, > > On 8/3/17 5:47 AM, Martin Knoblauch wrote: > > is there a way to compress the localhost_access_log.#.txt file > > automatically after r

Re: Automatically compressing localhost_access_log after rotation

2017-08-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 8/3/17 5:47 AM, Martin Knoblauch wrote: > is there a way to compress the localhost_access_log.#.txt file > automatically after rotation? Not really. The file is rotated *during* log events, and stalling to compress a log file is pro