From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/508 Path: main.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: svlogd localtime option Date: Sun, 4 Jul 2004 05:47:54 +0000 Message-ID: <20040704054801.5939.qmail@f950a45d36ced0.315fe32.mid.smarden.org> References: <871xjvo66s.wl@badger.wordzoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088920075 24823 80.91.224.253 (4 Jul 2004 05:47:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jul 2004 05:47:55 +0000 (UTC) Original-X-From: supervision-return-746-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Jul 04 07:47:46 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 1Bgzqs-0007TS-00 for ; Sun, 04 Jul 2004 07:47:46 +0200 Original-Received: (qmail 6837 invoked by uid 76); 4 Jul 2004 05:48:04 -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 6832 invoked from network); 4 Jul 2004 05:48:04 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <871xjvo66s.wl@badger.wordzoo.com> Xref: main.gmane.org gmane.comp.sysutils.supervision.general:508 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:508 On Thu, Jul 01, 2004 at 12:53:15PM -0700, Jared Rhine wrote: > In the spirit of making svlogd output useful to humans, svlogd has the > -tt switch to output in human-readable UTC. Would there be resistance > to having it be really useful by supporting a -ttt which uses > localtime? We're really talking about having using localtime instead > of gmtime in one line in fmt_ptime.c, though option processing and > such would need to change. > > I appreciate that UTC-based servers are useful in a global setting, > but it's a hindrance to good systems administration in many contexts. > And there's always the internal politics, where coworkers complain. Using TAI or UTC has the great advantage that logs are sortable after merging, this is not guaranteed when using localtime. I think it's better to let the pager used to display logs do such jobs. I've been thinking about a "svlogp" program (svlog processor, or pager) for some time, which should be able to select log message by pattern or time, to merge logs from multiple log directories, and maybe to transform timestamps and more. There have been feature requests for a tai64nlocal alike program. > It may be the case that there's already an (undocumented?) -ttt > option, if I'm reading svlogd.c right. It looks like that option > truncates the sub-second portion. Yes, but please don't use it, it's undocumented... Regards, Gerrit.