[syslog-ng] sub-second time digits all 0

John Chang jchang at skytap.com
Tue Sep 3 23:18:41 UTC 2019


Hello, I am not getting non-zero sub-second timestamp digits.  My
/etc/syslog-ng/syslog-ng.conf
file includes this global configuration:

# First, set some global options.

options { frac-digits(3); chain_hostnames(off); flush_lines(0);
use_dns(no); use_fqdn(no);

          owner("root"); group("adm"); perm(0640); stats_freq(0);

          bad_hostname("^gconfd$");

};



My syslog-ng.conf also includes a sub-config file for sending the logs to a
remote host, with this configuration:



destination d_net {

    udp("loggerhost" port(30515) frac-digits(3) );

};

log { source(s_src); destination(d_net); };



But all sub-second timestamp digits wind up being only zeroes on the remote
"loggerhost", like this:



2019-09-03T21:57:23.000+00:00 10.73.254.255 [info] [sshd]  3284 Accepted
password for root from 10.72.0.186 port 50720 ssh2


The sending host is running syslog-ng 3.5.3.  The receiving "loggerhost" is
running 3.5.6 Thanks in advance for any help you can afford.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20190903/a7e6eb5b/attachment.html>


More information about the syslog-ng mailing list