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

John Chang jchang at skytap.com
Wed Sep 4 21:17:22 UTC 2019


Thanks for the advice.  Testing as you advise I do get the sub second
non-zero digits.

Are you saying that the commit you reference fixes the problem in 3.5.6?

On Tue, Sep 3, 2019 at 4:18 PM John Chang <jchang at skytap.com> wrote:

> 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/20190904/7ce11c00/attachment.html>


More information about the syslog-ng mailing list