[syslog-ng] Missing one log message when destination unavailable for short period of time.

Ali Shirvani aj.shirvani at gmail.com
Thu May 7 17:03:21 UTC 2020


Hi all,

I tried to setup simple relay with syslog-ng, it receives log on one port
and forward to the destination. It works fine when destination is
available, but when destination unavailable for a short period of time and
then became available I miss one log entry.

For example assume that I send simple numbers with logger command to
syslog-ng, from 0 to 100, when I receive 50 on destination I stop its
listener and start it again, in this case the first log entry that I
receive is 52 instead of 51.

Here is my syslog-ng.conf:

@version: 3.26

options {
  time_reopen(5);
};

source s_network {
  network(
    ip("127.0.0.1")
    port(514)
    transport("udp")
  );
};

destination d_network {
  network(
    "127.0.0.1"
    port(5514)
    transport("udp")
  );
};

log {
  source(s_network);
  destination(d_network);
};

Would you please help me to resolve this issue?

Regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200507/ed1d024b/attachment.html>


More information about the syslog-ng mailing list