RE: [syslog-ng]syslog-ng 1.5.16 released
syslog-ng 1.5.16 didn't build for me without the following patch. I'm not sure what the prefix should be so I just used NULL. --- syslog-ng-1.5.16/src/afstreams.c Sun Jul 8 17:04:21 2001 +++ syslog-ng-1.5.16-patched/src/afstreams.c Fri Apr 12 18:09:01 2002 @@ -145,7 +145,7 @@ length = eol - bol; if (length) { - li = make_log_info(length, bol); + li = make_log_info(length, bol, NULL); li->pri = pri; HANDLE_LOG(self->pipe, li); } -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu] Sent: Friday, April 12, 2002 6:34 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]syslog-ng 1.5.16 released Hi, I have released syslog-ng 1.5.16 with the following NEWS entry: News for the 1.5.16 release Fri, 12 Apr 2002 09:42:28 +0200 Changes: * added log_prefix support for file sources (for adding 'kernel: ' prefix to messages from /proc/kmsg) * fixed the internal DNS cache, so now it really works * fixed localip() and localport() directives for afinet destinations (they erroneously changed the destination address) * Detect O_LARGEFILE on the system and use it if available * Never close fds 0, 1, 2 and, use /dev/null for 0 and 1, and keep 2 open for messages during reinitialization * Added UNIXTIME, R_UNIXTIME, S_UNIXTIME macros to templates and filenames * Fixed TCP wrapper support. Our webserver is currently down, but as soon as it comes back up, I'll upload this release to the usual place: http://www.balabit.hu/en/downloads/syslog-ng/ -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng
"Clausing, James A (Jim), SOLCM" writes:
syslog-ng 1.5.16 didn't build for me without the following patch. I'm not sure what the prefix should be so I just used NULL.
And what operating system and platform are you running? What were your arguments to ./configure?
--- syslog-ng-1.5.16/src/afstreams.c Sun Jul 8 17:04:21 2001 +++ syslog-ng-1.5.16-patched/src/afstreams.c Fri Apr 12 18:09:01 2002 @@ -145,7 +145,7 @@
length = eol - bol; if (length) { - li = make_log_info(length, bol); + li = make_log_info(length, bol, NULL); li->pri = pri; HANDLE_LOG(self->pipe, li); }
I'm happy to report that the bug where file sources are not closed before they were reopened is almost fixed. By "almost" I mean that when I send syslog-ng a HUP, this happens: /root: # /etc/rc.d/syslogng reload Reloading syslogng config files. Changing permissions on special file /dev/klog Error opening file /dev/klog for reading (Device busy) Changing permissions on special file /dev/klog However, syslog-ng doesn't core dump as it did previously, and it continues to log kernel messages, so apart from the above error messages, it works. By the way, why is syslog-ng changing the permission on the file source? The default should be to leave it alone. My source statement is very simple: source kernel { file("/dev/klog"); }; What's really odd is that it is changing the permissions to 000. Not too big a deal in this instance, since only root reads /dev/klog anyway, but it would certainly cause havoc in some other cases (like someone reported already regarding /dev/null).
participants (2)
-
Clausing, James A (Jim), SOLCM
-
Ed Ravin