Subject: Re: Log rotation
To: Peter Seebach <seebs@plethora.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: current-users
Date: 02/18/2005 14:31:48
On Fri, 18 Feb 2005, Peter Seebach wrote:

> Is there anything other than newsyslog.conf which offers reasonably convenient
> log rotation?  BSD/OS had a program called "rotate" which could rotate a file,
> optionally compressing, on a regular basis.
>
> Newsyslog looks plausible, but it requires active maintenance; you can't
> just point it at a directory or wildcard pattern.
>
> One likely solution would be to add wildcarding to newsyslog.

That sounds useful.

> The underlying problem, of course, is that you ideally want to rotate all the
> logs at once, then kick Apache a single time, instead of sending Apache a new
> SIGHUP every second or so while you chew through a large virtual hosts list.
...
> One consideration is that, arguably, the best thing to do is to rename all the
> log files, then sighup apache, then do any compression later.  This sounds
> almost like a custom app.

newsyslog does the signal before it compresses the newly rotated file (and
after it creates new log file).

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/