[syslog-ng] File destination is not being written, when it can not bind remote host address

Alexandre Santos alexandre.rosas.santos at gmail.com
Wed Jul 29 08:51:35 UTC 2020


Hi,

I do not know if this a seen issue or not. I am using syslog-ng version
3.19 on a Debian 10.
I have the configuration which is attached in this email: syslog-ng.conf,
that has one local file destination and one remote host destination.

1. Start the syslog-ng
The localip of syslog destination is not available and therefore I have
these errors, as expected:
syslog-ng[1482]: [2020-07-27T12:58:00.069422] Error binding socket;
addr='AF_INET(10.0.2.6:0)', error='Cannot assign requested address (99)'
syslog-ng[1482]: [2020-07-27T12:58:00.069439] Initiating connection failed,
reconnecting; time_reopen='60'

2. After some time running syslog-ng stops sending the logs to the local
file. Why?

3. If I reload the syslog-ng configuration, without the remote destination,
the old logs are immediately flushed to the local file.
Jul 27 *15:05:55* localhost syslog-ng[29680]: [*2020-07-27T15:05:55.378*019]
Incoming log entry from journal; message='[*2020-07-27T13:44:06.890*952]
Outgoing message; message=\'<30>1 2020-07-27T13:44:06.772+00:00 localhost
syslog-ng 29680 - - [2020-07-27T13:44:06.772722] Processing the time zone
file (32bit part); filename=\\'/usr/share/zoneinfo/UTC\\'\x0a\''
Jul 27 15:05:55 localhost syslog-ng[29680]: [2020-07-27T15:05:55.378032]
json-parser(): no marker at the beginning of the message, skipping JSON
parsing ; input='[2020-07-27T13:44:06.890952] Outgoing message;
message=\'<30>1 2020-07-27T13:44:06.772+00:00 localhost syslog-ng 29680 - -
[2020-07-27T13:44:06.772722] Processing the time zone file (32bit part);
filename=\\'/usr/share/zoneinfo/UTC\\'\x0a\'', marker='@cim:'

Is this a new issue?
Is there any configuration to prevent this?

In attachment also the journalctl of syslog-ng in debug mode (syslog-ng
-Fvde).

Thanks and regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200729/572c4d74/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syslog-ng.conf
Type: application/octet-stream
Size: 2756 bytes
Desc: not available
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200729/572c4d74/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journalctl.syslog-ng.zip
Type: application/x-zip-compressed
Size: 60547 bytes
Desc: not available
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200729/572c4d74/attachment-0001.bin>


More information about the syslog-ng mailing list