syslog-ng message every minute, trying to connect to orphaned interface

Started by Burschi, December 16, 2020, 08:06:36 PM

Previous topic - Next topic
So i was in the process converting my internal net to VLAN only networks, with the last step of disabling/unassigning my native LAN interface (igb2, 192.168.10.254). After doing so i found messages from syslog-ng, repeating every minute:

syslog-ng Error binding socket; addr='AF_INET(192.168.10.254:0)', error='Can\'t assign requested address (49)'
syslog-ng Initiating connection failed, reconnecting; time_reopen='60'


After fiddling around looking for forgotten references to the old if in the config i found out that the reason was in some config file not available through gui:


/usr/local/etc/syslog-ng.conf.d/legacy-remote.conf

network("192.168.10.220" transport("udp") port(514) ip-protocol(4) localip(192.168.10.254));



where .220 is my syslog protocol server and .10.254 is the old if address. Changing that to the new ips solved the problem.


I don“t know if this solves the problem too, i found it by trial-and-error and thought someone might have the same problem.

Sorry for being late to reply.

I haven't heard this issue again after 20.7.6 so far... either fix is fine for me ;)


Cheers,
Franco