From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/673 Path: main.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit 1.05: svlogd rotation Date: Fri, 21 Jan 2005 20:41:30 +0000 Message-ID: <20050121204032.11242.qmail@527aa385319b69.315fe32.mid.smarden.org> References: <20050121175658.GR20142@home.power> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106340017 20447 80.91.229.6 (21 Jan 2005 20:40:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2005 20:40:17 +0000 (UTC) Original-X-From: supervision-return-912-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jan 21 21:40:11 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1Cs5Zj-0008Qh-00 for ; Fri, 21 Jan 2005 21:40:11 +0100 Original-Received: (qmail 27188 invoked by uid 76); 21 Jan 2005 20:40:32 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 27183 invoked from network); 21 Jan 2005 20:40:32 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20050121175658.GR20142@home.power> Xref: main.gmane.org gmane.comp.sysutils.supervision.general:673 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:673 On Fri, Jan 21, 2005 at 07:56:58PM +0200, Alex Efros wrote: > Probably I don't understand svlogd documentation correctly or there some > (documentation?) bugs lurking around... I noticed a huge number of rotated > log files @*.s exists, much more than allowed by logdir/config file in 'n' > directive. > > In some config files I've set 'n0' to have no old rotated log files > (I need only up to last 1MB of data in "current" file). But looks like 'n0' > mean: don't remove log files at all. :) Ok, I will use 'n1' instead of 'n0' > in the future. Yes, 'n0' means not removing log files at all on log rotation, I'll clarify this in the documentation. > But there also a lot of logdirs with: > - no 'n' directive at all (this should be equal to 'n10') > - 'n2' directive > - 'n3' directive > - 'n5' directive > And in most of these directories I see a LOT of @*.s files instead of 2-3-5. > In some directories without 'n' directive also a lot of @*.s files exists. svlogd does not automatically reduce the number of log files. If there are already more log files in the log directory than specified in the config file, svlogd will still only remove the oldest one on rotation; adds one and removes one. You would need to remove older log files by hand if you change the configuration. Maybe I should clarify that in the documentation too, I think this may be your problem. > Also there exists a lot of @*.u files. I know @*.u isn't usual rotated > log file, but 'incomplete' log file. I understand what it isn't correct > to rotate such incomplete logs just like usual logs because in this case > we can finish with only 10 incomplete log files with 100-200 bytes in > each left in log directory instead of last 10MB of log data. On log file rotation svlogd treats the @*.u and @*.s files the same, it maintains a number of @* files with a 27 characters long filename. Regards, Gerrit.