From owner-freebsd-questions@FreeBSD.ORG Thu Nov 8 13:26:37 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95C0916A419 for ; Thu, 8 Nov 2007 13:26:37 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 4B82E13C4B2 for ; Thu, 8 Nov 2007 13:26:37 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1Iq42h-0007vs-JZ for questions@freebsd.org; Thu, 08 Nov 2007 09:51:19 +0000 Received: from esperance.zetnet.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with SMTP id lA89pIie028284 for ; Thu, 8 Nov 2007 09:51:18 GMT Received: (qmail 1781 invoked by uid 1001); 8 Nov 2007 09:51:12 -0000 From: "Frank Shute" Date: Thu, 8 Nov 2007 09:51:12 +0000 To: Per olof Ljungmark Message-ID: <20071108095112.GA1754@melon.esperance-linux.co.uk> References: <47322023.6060707@intersonic.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47322023.6060707@intersonic.se> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 6.2-STABLE i386 X-Organisation: 'Esperance Linux' Cc: questions@freebsd.org Subject: Re: syslog time resolution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 13:26:37 -0000 On Wed, Nov 07, 2007 at 09:29:23PM +0100, Per olof Ljungmark wrote: > > Hi, > > I would like to increase the number of decimals reported in logfiles by > syslogd(8), anyone knows if it is possible and perhaps a hint on how to > do it? > > tcpdump for instance, has six decimals: 21:25:20.160833 whereas the > standard syslog has zero decimal secs. > > I am only referring to events within a single system so it's not related > to clock accuracy. > > Thanks and sorry if I missed the obvious! > > --per Per, Dependent on what you're exactly trying to do, you might want to look at daemontools (in ports: sysutils). The tools come with a logger which will give you high resolution timestamps. Have a look at: http://cr.yp.to/daemontools/multilog.html http://cr.yp.to/daemontools/tai64n.html HTH. -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html