Date: Thu, 8 Nov 2007 09:51:12 +0000 From: "Frank Shute" <frank@esperance-linux.co.uk> To: Per olof Ljungmark <peo@intersonic.se> Cc: questions@freebsd.org Subject: Re: syslog time resolution Message-ID: <20071108095112.GA1754@melon.esperance-linux.co.uk> In-Reply-To: <47322023.6060707@intersonic.se> References: <47322023.6060707@intersonic.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071108095112.GA1754>