[syslog-ng] RFC3339 fractional second logging

Balazs Scheidler bazsi at balabit.hu
Thu Feb 9 18:34:49 CET 2006


On Wed, 2006-02-08 at 13:06 -0500, rlott at ivhs.com wrote:

> I have installed syslog-ng version 1.9.8 on my Fedora Core 4
> workstation and have been trying to get the timestamp to give me a
> fractional seconds output for my timestamps. 
> 
> I have read that if I use the following option in my syslog-ng.conf
> file: 
> 
> options { ts_format("iso"); }; 
> 
> I should get log file entries in the RFC3339 format: 
> 
> YYYY-MM-DDTHH:MM:SS[.frac]<+/->ZZ:ZZ 
> 
> Now, my log entries are like this, except that there is no "[.frac]"
> component to them.  I looked into the source code for this and there
> is a section in src/macros.c that deals with this, but I don't know
> what flags or options to specify so that the fractional part is
> printed. 

the fraction info is printed only if it is available, e.g. it was
generated by syslog-ng itself, as otherwise no-one else sends fractions.


-- 
Bazsi



More information about the syslog-ng mailing list