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 Dir

Re: [PATCH] newsyslog - archive logs with a timestamp

2007-08-12 Thread Dan Rue
On Sun, Aug 12, 2007 at 02:24:20PM +0200, Ulrich Spoerlein wrote: > I'd rather see an extension for newsyslog which would rotate foo to > foo.2007-08-12.gz, iff rotation is done every day at midnight. Sorry to hijack the thread, but this is something that I've been looking for fo

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

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

2007-08-12 Thread David Wolfskill
rol of those of us who run the machines, we need to keep some number of the most recent of them uncompressed. > I'd rather see an extension for newsyslog which would rotate foo to > foo.2007-08-12.gz, iff rotation is done every day at midnight. > > That way, you get a 'stab

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 mai

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

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 o

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

[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

Re: cvs commit: src/usr.sbin/newsyslog newsyslog.8 newsyslog.c

2004-10-05 Thread Brooks Davis
On Mon, Oct 04, 2004 at 10:33:25PM -0400, Christopher Nehren wrote: > On Mon, 2004-10-04 at 23:35 +, Brooks Davis wrote: > > brooks 2004-10-04 23:35:13 UTC > > > > FreeBSD src repository > > > > Modified files: > > usr.sbin/newsysl

Re: cvs commit: src/usr.sbin/newsyslog newsyslog.8 newsyslog.c

2004-10-04 Thread Garance A Drosehn
At 10:33 PM -0400 10/4/04, Christopher Nehren wrote: On Mon, 2004-10-04 at 23:35 +, Brooks Davis wrote: brooks 2004-10-04 23:35:13 UTC FreeBSD src repository Modified files: usr.sbin/newsyslog newsyslog.8 newsyslog.c Log: > Add a new -d argument which is used

Re: cvs commit: src/usr.sbin/newsyslog newsyslog.8 newsyslog.c

2004-10-04 Thread Christopher Nehren
On Mon, 2004-10-04 at 23:35 +, Brooks Davis wrote: > brooks 2004-10-04 23:35:13 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/newsyslog newsyslog.8 newsyslog.c > Log: > Add a new -d argument which is used to specify an alternat

Re: [patch] extension of newsyslog

2001-10-13 Thread Toshihiko ARAI
+ <[EMAIL PROTECTED]>, Cyrille Lefevre wrote: >> I add script call features to newsyslog. This adds a one field to >> newsyslog.conf. When newsyslog processed log file, this can execute >> arbitrary program. >> >> Situation to assume: >> * For the lo

Re: [patch] extension of newsyslog

2001-10-08 Thread Cyrille Lefevre
Toshihiko ARAI wrote: > Hello, > > I add script call features to newsyslog. This adds a one field to > newsyslog.conf. When newsyslog processed log file, this can execute > arbitrary program. > > Situation to assume: > * For the log file which cannot use signal. >

[patch] extension of newsyslog

2001-10-08 Thread Toshihiko ARAI
Hello, I add script call features to newsyslog. This adds a one field to newsyslog.conf. When newsyslog processed log file, this can execute arbitrary program. Situation to assume: * For the log file which cannot use signal. * Cases to do statistical application for log file. A sample

newsyslog

2000-08-30 Thread Jeroen Ruigrok van der Werven
Can anybody confirm that the examples in newsyslog's manpage for things like: $MLD0 , $M1D0 and such actually work. No matter which I use I keep getting these mails from newsyslog: newsyslog: malformed interval/at: /var/log/news/news.notice 644 2 *$M1D0 Z AFAIK

newsyslog(8) hack

2000-05-08 Thread Dag-Erling Smorgrav
I've hacked newsyslog(8) to accept a list of log files to process on the command line (very useful in combination with -F). See attached patches. I'll commit this in a few days if noone objects. DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] Index: n

RFC: newsyslog enhancements

2000-03-29 Thread Hellmuth Michaelis
I've put a tarball of my enhancements to newsyslog on http://www.freebsd.org/~hm/newsyslog.tar.gz The differences to the in-tree versions are: - ability to archive rotated logfiles into a separate configurable directory - provide another method (in addition to the ISO 8601 forma

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
> A better patch would check to see if the text to the right of the '.' > is a valid group... However, the above will still parse > > fred.jones:fred.jones > > in the most desirable way, so I suppose the validity checking is > overkill. This is what I plan to commit (w/in minutes): -

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Warner Losh
In message <19755.933088...@axl.noc.iafrica.com> Sheldon Hearn writes: : +#ifdef SUPPORT_DOT : +/* Older configurations used '.' between user and group */ : +if ((group = strchr(q, ':')) != NULL || : +(group = strchr(q, '.')) != NULL) { : +#else :

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
> A better patch would check to see if the text to the right of the '.' > is a valid group... However, the above will still parse > > fred.jones:fred.jones > > in the most desirable way, so I suppose the validity checking is > overkill. This is what I plan to commit (w/in minutes): -

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Warner Losh
In message <[EMAIL PROTECTED]> Sheldon Hearn writes: : +#ifdef SUPPORT_DOT : +/* Older configurations used '.' between user and group */ : +if ((group = strchr(q, ':')) != NULL || : +(group = strchr(q, '.')) != NULL) { : +#else :

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
On Tue, 27 Jul 1999 09:07:34 MST, "David O'Brien" wrote: > To paraphase Bill Paul: > > G that's part of my last name. N! I was chatting to a buddy about this just after I sent you the diffs and actually mentioned to him that I thought I might have made this mistake again. Since th

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
On Tue, Jul 27, 1999 at 05:25:23PM +0200, Sheldon Hearn wrote: > > Hi Brian, To paraphase Bill Paul: G that's part of my last name. -- -- David(obr...@nuxi.com -or- obr...@freebsd.org) To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
d me that we do as much as (but no more than) we can to make the upgrade path as smooth as possible. I don't think that the extra line of code is more than we can do. :-) I'm acting out of self-preservation here. If a line of code can save me 5 PR's on 4.0-RELEASE, I'll take t

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
On Tue, 27 Jul 1999 09:07:34 MST, "David O'Brien" wrote: > To paraphase Bill Paul: > > G that's part of my last name. N! I was chatting to a buddy about this just after I sent you the diffs and actually mentioned to him that I thought I might have made this mistake again. Since t

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
On Tue, Jul 27, 1999 at 05:25:23PM +0200, Sheldon Hearn wrote: > > Hi Brian, To paraphase Bill Paul: G that's part of my last name. -- -- David([EMAIL PROTECTED] -or- [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the bo

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
r- and groupnames which include dots. I took my lead from chown(8). Ciao, Sheldon. Index: Makefile === RCS file: /home/ncvs/src/usr.sbin/newsyslog/Makefile,v retrieving revision 1.6 diff -u -d -r1.6 Makefile --- Makefile1999/01/22 19

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
> COMPATIBILITY > Previous versions of the chown utility used the dot (``.'') > character to distinguish the group name. Begining with FreeBSD > 4.0, this has been changed to be a colon (``:'') character so that > user and group names may contain the dot character. Hum... I th

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
> This one raised a number of eyebrows and a few people asked you to hold > on to legacy support for a single release. It's a reasonable request, > given the obscure error message one gets for providing the previously > supported syntax: > > newsyslog: error in confi

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
d me that we do as much as (but no more than) we can to make the upgrade path as smooth as possible. I don't think that the extra line of code is more than we can do. :-) I'm acting out of self-preservation here. If a line of code can save me 5 PR's on 4.0-RELEASE, I'll take t

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
r- and groupnames which include dots. I took my lead from chown(8). Ciao, Sheldon. Index: Makefile === RCS file: /home/ncvs/src/usr.sbin/newsyslog/Makefile,v retrieving revision 1.6 diff -u -d -r1.6 Makefile --- Makefile1999/01/22

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
> COMPATIBILITY > Previous versions of the chown utility used the dot (``.'') > character to distinguish the group name. Begining with FreeBSD > 4.0, this has been changed to be a colon (``:'') character so that > user and group names may contain the dot character. Hum... I t

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread David O'Brien
> This one raised a number of eyebrows and a few people asked you to hold > on to legacy support for a single release. It's a reasonable request, > given the obscure error message one gets for providing the previously > supported syntax: > > newsyslog: error in confi

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
On Tue, 27 Jul 1999 06:57:49 -0400, Tim Vanderhoek wrote: > Consider also adding owner:group support to -stable in order to > provide the longest change-over period possible. You have to read the CURRENT newsyslog(8) manpage before you realize that this is a lose-lose situation: COMPATI

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Tim Vanderhoek
On Tue, Jul 27, 1999 at 12:08:10PM +0200, Sheldon Hearn wrote: > > strongly opposed to it, or because you don't have time? If it's the > latter, I'll do it. If the former, note that your commit message was Consider also adding owner:group support to -stable in order to provide the longest change-

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
On Tue, 27 Jul 1999 06:57:49 -0400, Tim Vanderhoek wrote: > Consider also adding owner:group support to -stable in order to > provide the longest change-over period possible. You have to read the CURRENT newsyslog(8) manpage before you realize that this is a lose-lose sit

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
er of eyebrows and a few people asked you to hold on to legacy support for a single release. It's a reasonable request, given the obscure error message one gets for providing the previously supported syntax: newsyslog: error in config file; bad permissions: /var/log/exim/mainlog exim.mail

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Tim Vanderhoek
On Tue, Jul 27, 1999 at 12:08:10PM +0200, Sheldon Hearn wrote: > > strongly opposed to it, or because you don't have time? If it's the > latter, I'll do it. If the former, note that your commit message was Consider also adding owner:group support to -stable in order to provide the longest change

Re: newsyslog owner.group -> owner:group

1999-07-27 Thread Sheldon Hearn
er of eyebrows and a few people asked you to hold on to legacy support for a single release. It's a reasonable request, given the obscure error message one gets for providing the previously supported syntax: newsyslog: error in config file; bad permissions: /var/log/exim/mainlog exim.mail