From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/533 Path: main.gmane.org!not-for-mail From: Henrik Heil Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: svlogd -tt Date: Mon, 26 Jul 2004 20:39:39 +0200 Message-ID: <41054FEB.2090305@zweipol.net> References: <40FD6BB6.5000902@zweipol.net> <20040723102024.28233.qmail@67ec0c2e018e31.315fe32.mid.smarden.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090868387 2948 80.91.224.253 (26 Jul 2004 18:59:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2004 18:59:47 +0000 (UTC) Original-X-From: supervision-return-771-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Jul 26 20:59:30 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BpAOh-00054G-00 for ; Mon, 26 Jul 2004 20:40:27 +0200 Original-Received: (qmail 4490 invoked by uid 76); 26 Jul 2004 18:40:49 -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 4484 invoked from network); 26 Jul 2004 18:40:49 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 Thunderbird/0.7 Mnenhy/0.6.0.101 X-Accept-Language: en-us, en Original-To: supervision@list.skarnet.org In-Reply-To: <20040723102024.28233.qmail@67ec0c2e018e31.315fe32.mid.smarden.org> X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Xref: main.gmane.org gmane.comp.sysutils.supervision.general:533 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:533 >>i read the thread about the svlogd -t switches some weeks ago and though >> i am using -tt (UTC) happily i am missing the feature to have the >>rotated logfiles with UTC-names instead of @TAI-names. >> >>Is there a drawback to make this an option? >>The order of the logfiles would be preserved, selecting logfiles with >>wildcards would be easy. >> >>I cannot comment on pro/contra TAI itsself but i think one who decides >>not to have TAI-timestamps in the logfiles would prefer UTC-filenames >>for the rotated files too. >> >>What do you think? > > > When making it a runtime option, there must be a decision whether svlogd > shall maintain two different sets of files in the log directory, or > filename conversion should be done. Thinking about these alternatives i must admit that both seem to have a drawback -- and that i underestimated the complexity of switching the formats. Different sets (if i understood that right) means that it is not intuitive what the maximum number of old log files from the config means. It cannot mean num=TAI+UTC because in this case svlogd could not rotate if the log directory would contain num logfiles of the other format. If it means num*TAI + num*UTF the straightforward method to calculate the maximum size of the log directory no longer works and changing the format without moving the old files leads to a log directory that occupies twice the disk space. With filename conversion i am not shure if you mean renaming the existing logfiles or properly calculating the oldest file from both formats before deleting it. Unfortunatly i have no idea how complex any of these two would be -- probably it's not worth the effort. What do you think about a runtime option for UTC-filenames that only comes into effect if there are no TAI-filenames in the log directory and vice versa? I guess this would require a small patch and almost no overhead when rotating the logfiles. I think there is nothing to gain by leaving the old files in the log directory when switching the format. Best regards, Henrik -- Henrik Heil, zweipol Coy & Heil GbR http://www.zweipol.net/