Re: [PATCH] newsyslog - don't compress first log file

2007-08-14 Thread David Wolfskill
On Fri, Aug 10, 2007 at 02:19:55PM +0300, Artis Caune wrote: > How about aditional flag ("X") to newsyslog, which don't compress first > log file? > This is useful for apache. >... After a bit of discussion here, and using a patch to newsyslog.c supplied by Dirk GOUDERS <[EMAIL PROTECTED]> (which

Re: [PATCH] newsyslog - don't compress first log file

2007-08-12 Thread Ulrich Spoerlein
On Fri, 10.08.2007 at 09:13:18 -0700, David Wolfskill wrote: > On Fri, Aug 10, 2007 at 02:19:55PM +0300, Artis Caune wrote: > > How about aditional flag ("X") to newsyslog, which don't compress first > > log file? > >... > > Interesting idea, but it still falls short of something we recently > ne

Re: [PATCH] newsyslog - don't compress first log file

2007-08-12 Thread David Wolfskill
On Sun, Aug 12, 2007 at 02:24:20PM +0200, Ulrich Spoerlein wrote: > ... > > We have a requirement to retain some number of logfiles, but only > > compress those older than the Nth generation. > > > > Thus, we might retain 90 "rotated" generations of the log file, of which > > the oldest 50 are com

Re: [PATCH] newsyslog - don't compress first log file

2007-08-12 Thread Dirk GOUDERS
> Ah -- well, then: by all means. I'm even more willing to test other > folks' work than I am to hack away at code. :-} > > And since I had tested my own Perl script, I think I should be able to > help out with this. :-) > > And "after Sunday" is not a problem at all: thank you! I tested the

Re: [PATCH] newsyslog - don't compress first log file

2007-08-11 Thread David Wolfskill
On Sat, Aug 11, 2007 at 04:39:42PM +0200, Dirk GOUDERS wrote: > > > We could extend the 'count' field to accept 'N+M'. N being the number of > > plain log files and M the number of compressed ones. > > > > This would also negate the need for a new flag. > > It could also be done with a numerical

Re: [PATCH] newsyslog - don't compress first log file

2007-08-11 Thread David Wolfskill
On Sat, Aug 11, 2007 at 04:12:29PM +0200, Joost Bekkers wrote: > On Fri, August 10, 2007 18:13, David Wolfskill wrote: > > > > Biggest problem I can see (with what I want to accomplish) is how to > > specify it in the config file. > > > > We could extend the 'count' field to accept 'N+M'. N being

Re: [PATCH] newsyslog - don't compress first log file

2007-08-11 Thread Dirk GOUDERS
> We could extend the 'count' field to accept 'N+M'. N being the number of > plain log files and M the number of compressed ones. > > This would also negate the need for a new flag. It could also be done with a numerical flag "n" where n is a number that specifies the extension of the logfile up

Re: [PATCH] newsyslog - don't compress first log file

2007-08-11 Thread Joost Bekkers
On Fri, August 10, 2007 18:13, David Wolfskill wrote: > > Biggest problem I can see (with what I want to accomplish) is how to > specify it in the config file. > We could extend the 'count' field to accept 'N+M'. N being the number of plain log files and M the number of compressed ones. This woul

Re: [PATCH] newsyslog - don't compress first log file

2007-08-11 Thread Dirk GOUDERS
> How about using the flag "0" similar to that in newsyslog written by > Theodore Ts'o of MIT Project Athena: Sorry, I have to correct myself: The flag "0" appears in the enhanced version of newsyslog that is maintained by Greg A. Woods. Dirk ___ free

Re: [PATCH] newsyslog - don't compress first log file

2007-08-10 Thread David Wolfskill
On Fri, Aug 10, 2007 at 02:19:55PM +0300, Artis Caune wrote: > How about aditional flag ("X") to newsyslog, which don't compress first > log file? >... Interesting idea, but it still falls short of something we recently needed to do at work: We have a requirement to retain some number of logfile

Re: [PATCH] newsyslog - don't compress first log file

2007-08-10 Thread Dirk GOUDERS
> How about aditional flag ("X") to newsyslog, which don't compress first > log file? How about using the flag "0" similar to that in newsyslog written by Theodore Ts'o of MIT Project Athena: 0 The 0 flag means that the most recent archive of the log file (i.e. t

Re: [PATCH] newsyslog - don't compress first log file

2007-08-10 Thread Trond Endrestøl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 10 Aug 2007 13:51+0200, Trond Endrest�l wrote: Why do you need to complicate matters? My bad. I didn't read your entire post. I thought you wanted to drop compression of every generation of the log files. Sorry for the noise. - -- - --

Re: [PATCH] newsyslog - don't compress first log file

2007-08-10 Thread Trond Endrestøl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 10 Aug 2007 14:19+0300, Artis Caune wrote: How about aditional flag ("X") to newsyslog, which don't compress first log file? Why do you need to complicate matters? Just remove the Z flag from the applicable lines in /etc/newsyslog.conf, a

[PATCH] newsyslog - don't compress first log file

2007-08-10 Thread Artis Caune
How about aditional flag ("X") to newsyslog, which don't compress first log file? This is useful for apache. # cat /etc/newsyslog.conf /var/log/httpd-access.log www:www 640 64 * $W1D0 BCZX /var/run/httpd.pid 30 # ls /var/log/archive2/ httpd-access.log.0 httpd-access.log.1.gz httpd-