syslog time resolution
Frank Shute
frank at esperance-linux.co.uk
Thu Nov 8 05:26:37 PST 2007
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
More information about the freebsd-questions
mailing list