9 Oct
2015
9 Oct
'15
12:48 p.m.
I have configured a destination in syslog to a tcp port on localhost options { long_hostnames(off); sync(0); perm(0640); stats(3600); }; source src { internal(); unix-dgram("/dev/log"); udp(); }; destination mgagent{ tcp("127.0.0.1" port(5009) template("$TAG $HOST $PROGRAM $MSGONLY\n")); }; I have a tcp server n the localhost ,receiving logs on this port and it does further processing . Whenever syslog-ng is reloaded or restarted and te tcp server is running , a flood of the logs is sent on this tcp port ( which is handled by the tcp server) , but this is not wanted. The logs which were already sent before restart is sent repeatedly . Is there any way to stop or prevent this . syslog version is syslog-ng 2.0.9 on SLES 11 SP3 -Thanks