Hello community, here is the log from the commit of package syslog-ng.2239 for openSUSE:13.1:Update checked in at 2013-11-25 10:54:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:13.1:Update/syslog-ng.2239 (Old) and /work/SRC/openSUSE:13.1:Update/.syslog-ng.2239.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "syslog-ng.2239" Changes: -------- New Changes file: --- /dev/null 2013-11-25 01:44:08.036031256 +0100 +++ /work/SRC/openSUSE:13.1:Update/.syslog-ng.2239.new/syslog-ng.changes 2013-11-25 10:54:46.000000000 +0100 @@ -0,0 +1,1098 @@ +------------------------------------------------------------------- +Thu Nov 14 13:03:50 CET 2013 - [email protected] + +- update 3.4.5 (bugfix release) +- fixes bnc#850445 + https://bugzilla.novell.com/show_bug.cgi?id=850445 + +------------------------------------------------------------------- +Thu Oct 24 18:39:20 CEST 2013 - [email protected] + +- update 3.4.4 (bugfix release) + +------------------------------------------------------------------- +Wed Aug 14 10:16:26 CEST 2013 - [email protected] + +- update to 3.4.3 (bugfix release) + +------------------------------------------------------------------- +Sun Jun 2 10:32:42 CEST 2013 - [email protected] + +- update to 3.4.2, which fixes bnc#815746 + https://bugzilla.novell.com/show_bug.cgi?id=815746 +- many bugfixes, including flags(final) + +------------------------------------------------------------------- +Sun Apr 14 06:28:29 UTC 2013 - [email protected] + +- Fix systemd unit to do only what is required + by http://www.freedesktop.org/wiki/Software/systemd/syslog + in particular it should not mess with the ordering of syslog.target + +------------------------------------------------------------------- +Mon Mar 4 17:47:36 UTC 2013 - [email protected] + +- Fixed to use program() instead of message() to match by program + names (bnc#805309). + +------------------------------------------------------------------- +Fri Feb 8 09:20:49 CET 2013 - [email protected] + +- updated configuration version from 3.3 to 3.4 + +------------------------------------------------------------------- +Thu Jan 31 11:40:50 CET 2013 - [email protected] + +- update to 3.4.1 release +- bugfixes + +------------------------------------------------------------------- +Fri Jan 18 11:17:04 CET 2013 - [email protected] + +- update to 3.4 RC2 +- bugfixes +- updates bundled ivykis to 0.36 + +------------------------------------------------------------------- +Wed Jan 9 12:29:29 UTC 2013 - [email protected] + +- Enable syslog-ng.service and create the syslog.service alias link + in post install -- regardless of a preset config (bnc#790805). +- Check the existence of /etc/init.d/syslog script before calling + the restart_on_update and stop_on_removal macros to avoid errors + on update. Since openSUSE 12.3, no syslog init script is shipped + (bnc#790298,bnc#750478). + +------------------------------------------------------------------- +Mon Jan 7 16:20:48 CET 2013 - [email protected] + +- update to 3.4 RC1 (only bugfixes) +- removed temporary syslog-ng-systemd.patch + +------------------------------------------------------------------- +Mon Dec 17 11:54:15 CET 2012 - [email protected] + +- update to 3.4 beta1 (only bugfixes) +- added smtp support +- enable features explicitely (add --enable-XXX for + mongodb and amqp) +- add syslog-ng-systemd.patch temporarilty to fix bug when starting + from systemd +- enable GeoIP support into separate subpackage + +------------------------------------------------------------------- +Fri Dec 7 11:13:40 CET 2012 - [email protected] + +- update to 3.4 git HEAD +- many new features, including: + - junctions and more complicated log processing paths + - amqp destination + - smtp destination + - json output and parser plugins + - key rewriting in destination drivers (add, remove prefixes) + - a number of new template functions (uuid, hash functions, etc) + - a number of new parsers in db-parser (set, pcre, ...) + - allow 32 bit message and nvpair sizes + - improved systemd support + - demand loaded plugins + - plugin support for log transport protocols and the network + driver to be able to use them easily +- add/remove files from pkglist +- added python needed by SLES + +------------------------------------------------------------------- +Tue Nov 20 11:46:26 UTC 2012 - [email protected] + +- Require syslog-service >= 2.0 on 12.3, otherwise < 2.0, which + contain the /etc/init.d/syslog init script. + +------------------------------------------------------------------- +Mon Nov 12 17:30:32 UTC 2012 - [email protected] + +- Fixed build requires / deps to work on 12.x and SLE-11-SP2. +- Initialized SYSLOG_NG_PARAMS env variable in service file. +- Marked additional log sockets file as ghost. + +------------------------------------------------------------------- +Mon Nov 12 10:33:15 UTC 2012 - [email protected] + +- Added syslog-ng.service and prepare script to spec file sources. + +------------------------------------------------------------------- +Fri Nov 9 17:09:24 UTC 2012 - [email protected] + +- Changed to provide a specific syslog-ng.service file which + creates an alias to syslog.service while activation instead + of using a SYSLOG_DAEMON to choose the syslog daemon. + A short pre-exec script is used to generate the additional + (chroot) log socket config (bnc#788330). +- Updated syslog provides/requires and added a conflict with + otherproviders(syslog). +- Dropped all ifdef-s and cleaned up to specify all relevant + directories via rpm macros. +- Changed to install in /usr/sbin, compatibility link in /sbin. + +------------------------------------------------------------------- +Tue Nov 6 17:06:14 CET 2012 - [email protected] + +- remove ifdef-s related to 11.X support except for systemd + (so SLES support could be fixed) +- remove no more used parts from spec +- remove syslog-ng.rc-script from sources + +------------------------------------------------------------------- +Tue Oct 31 12:18:36 CET 2012 - [email protected] + +- update to 3.3.7 release +- some last minute bugfixes + +------------------------------------------------------------------- +Mon Oct 8 12:34:32 CEST 2012 - [email protected] + +- update to 3.3.7rc2 +- bugfix release + +------------------------------------------------------------------- +Wed Aug 29 15:45:22 CEST 2012 - [email protected] + +- update to 3.3.6 with many small bugfixes, upstream ivykis + support, glob support for includes +- systemd patch no more necessary +- less static patch removed, as it was necessary for 11.X + +------------------------------------------------------------------- +Thu Jul 5 12:09:52 CEST 2012 - [email protected] + +- update to git head + +------------------------------------------------------------------- +Tue Apr 17 08:30:01 CEST 2012 - [email protected] + +- update to syslog-ng 3.3.5 which fixes even more memleaks +- resolves bnc#757680 + +------------------------------------------------------------------- +Thu Feb 23 16:21:05 UTC 2012 - [email protected] + +- Detect if we have to use the new /run/systemd/journal/syslog + socket under newer systemd versions, instead of the default + _PATH_LOG (/dev/log) socket. Avoids update problems and the + need to adopt config before using init=... boot parameter + (bnc#747871). + +------------------------------------------------------------------- +Fri Jan 27 12:45:30 CET 2012 - [email protected] + +- more changelog, as requested by saschpe + v3.3.1 was the initial syslog-ng 3.3 release + fixes and changes, taken from the syslog-ng NEWS file + +- Fixes: + +* Fixed set() and subst() rewrite operations to work properly on the + value() parameter specified in the configuration even if they are + referenced at multiple spots in the configuration file. Earlier + the 2nd and subsequent invocation of the rewrite rule changed + $MESSAGE. +* Fixed csv-parser() to work even if it is invoked at multiple spots ++++ 901 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:13.1:Update/.syslog-ng.2239.new/syslog-ng.changes New: ---- syslog-ng-service-prepare syslog-ng.changes syslog-ng.conf.default syslog-ng.service syslog-ng.spec syslog-ng.sysconfig syslog-ng_3.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ syslog-ng.spec ++++++ # # spec file for package syslog-ng # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: syslog-ng %define syslog_ng_rundir %{_localstatedir}/run/syslog-ng %define syslog_ng_sockets_cfg %{syslog_ng_rundir}/additional-log-sockets.conf Version: 3.4.5 Release: 0 Summary: The new-generation syslog-daemon License: GPL-2.0 Group: System/Daemons Url: http://www.balabit.com/products/syslog_ng/ #Source0: http://www.balabit.com/downloads/files/syslog-ng/sources/%%{version}/source/syslog-ng_%%{version}.tar.gz Source0: syslog-ng_%{version}.tar.gz Source1: syslog-ng.sysconfig Source2: syslog-ng.conf.default Source3: syslog-ng.service Source4: syslog-ng-service-prepare %if 0%{?suse_version} >= 1210 %bcond_without systemd %bcond_without dbi %else %bcond_with systemd %bcond_with dbi %endif %if 0%{?suse_version} >= 1230 %bcond_with systemv %else %bcond_without systemv %endif %define with_smtp %suse_version >= 1210 %define with_geoip %suse_version >= 1210 %if %{with systemd} Provides: syslog Provides: sysvinit(syslog) Conflicts: otherproviders(syslog) Requires(pre): %fillup_prereq %if %{with systemv} Requires(pre): %insserv_prereq Requires(pre): syslog-service < 2.0 Requires(pre): /etc/init.d/syslog %else Requires(pre): syslog-service >= 2.0 %endif %{?systemd_requires} BuildRequires: pkgconfig(systemd) %else Requires(pre): %insserv_prereq %fillup_prereq /etc/init.d/syslog BuildRequires: klogd %endif %if 0%{with_smtp} BuildRequires: libesmtp-devel %endif BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: glib2-devel %if 0%{?with_geoip} BuildRequires: libGeoIP-devel %endif BuildRequires: libevtlog-devel BuildRequires: libjson-devel BuildRequires: libopenssl-devel BuildRequires: pcre-devel BuildRequires: pkgconfig BuildRequires: python BuildRequires: tcpd-devel %if %{with dbi} BuildRequires: libdbi-devel %endif %if 0%{?suse_version} >= 1210 BuildRequires: libcap-devel BuildRequires: libnet-devel %else BuildRequires: libcap BuildRequires: libnet %endif # uncomment, if you want to run "make check" (local builds only) # BuildRequires: timezone BuildRoot: %{_tmppath}/%{name}-%{version}-build %description syslog-ng is a "new-generation" syslogd (replacement) for Unix and Unix-like systems. It tries to fill the gaps in the original syslogd: * powerful configurability * filtering based on message content * portability * better network forwarding The official home page of syslog-ng is: http://www.balabit.com/network-security/syslog-ng/ Authors: -------- Balázs Scheidler <[email protected]> BalaBit IT Ltd. <[email protected]> %if %{with dbi} %package sql Summary: SQL support using DBI Group: System/Daemons Requires: %{name} = %{version} %description sql This package provides the libafsql module providing support for logging into a SQL database using DBI. Authors: -------- Balázs Scheidler <[email protected]> BalaBit IT Ltd. <[email protected]> %endif %if 0%{?with_smtp} %package smtp Summary: SMTP output support Group: System/Daemons Requires: %{name} = %{version} %description smtp This package provides the afsmtp module providing support for logging into SMTP. Authors: -------- Balázs Scheidler <[email protected]> BalaBit IT Ltd. <[email protected]> %endif %if 0%{?with_geoip} %package geoip Summary: GeoIP support Group: System/Daemons Requires: %{name} = %{version} %description geoip This package provides the tfgeoip module providing support for logging country information. Authors: -------- Balázs Scheidler <[email protected]> BalaBit IT Ltd. <[email protected]> %endif %package json Summary: JSON output support Group: System/Daemons Requires: %{name} = %{version} %description json This package provides the tfjson module providing support for logging in JSON format. Authors: -------- Balázs Scheidler <[email protected]> BalaBit IT Ltd. <[email protected]> %prep %setup -q -n syslog-ng-%{version} # fill out placeholders in the config, # systemd service and prepare script. for file in \ syslog-ng.conf.default \ syslog-ng.service \ syslog-ng-service-prepare \ ; do sed \ -e 's;@sbindir@;%{_sbindir};g' \ -e 's;RUN_DIR;%{syslog_ng_rundir};g' \ -e 's;ADDITIONAL_SOCKETS;%{syslog_ng_sockets_cfg};g' \ "%{_sourcedir}/${file}" > "${file}" done %ifarch s390 s390x sed -i -e 's/tty10/console/g' syslog-ng.conf.default %endif %build ## ## build #################################################### ## export CFLAGS="$RPM_OPT_FLAGS" %if 0%{?with_geoip} export GEOIP_LIBS="-lGeoIP" %endif %configure \ --enable-ipv6 \ --enable-tcp-wrapper \ --enable-spoof-source \ --sysconfdir=/etc/syslog-ng \ --localstatedir=%{_localstatedir}/lib/syslog-ng \ --with-pidfile-dir=%{_localstatedir}/run \ --with-module-dir="%{_libdir}/syslog-ng" \ --with-module-path="%{_libdir}/syslog-ng" \ --with-default-modules="affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat" \ --datadir="%{_datadir}/syslog-ng" \ --without-compile-date \ --enable-ssl \ --enable-pcre \ %if 0%{?with_smtp} --with-libesmtp=/usr/lib \ %endif %if %{with systemd} --enable-systemd \ %endif %if %{with dbi} --enable-sql \ %endif --enable-json \ --enable-capabilities \ --enable-amqp \ %if 0%{?with_geoip} --enable-geoip \ %endif --enable-mongodb \ --enable-dynamic-linking # # - build syslog-ng # make %_smp_mflags #%check ## ## check #################################################### ## #make check %install ## ## install ################################################## ## export RPM_BUILD_ROOT for dir in /sbin \ %{_sysconfdir}/syslog-ng \ %{_localstatedir}/lib/syslog-ng \ %{_localstatedir}/run/syslog-ng \ %{_localstatedir}/adm/fillup-templates ; do test -d ${RPM_BUILD_ROOT}${dir} || \ install -d -m755 ${RPM_BUILD_ROOT}${dir} done # make DESTDIR=${RPM_BUILD_ROOT} install # %if %{with systemd} && ! %{with systemv} install -d -m755 %{buildroot}%{_unitdir}/ install -c -m644 syslog-ng.service %{buildroot}%{_unitdir}/ install -c -m755 syslog-ng-service-prepare %{buildroot}%{_sbindir}/ %endif # install configs install -m644 syslog-ng.conf.default \ $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf install -m644 $RPM_SOURCE_DIR/syslog-ng.sysconfig \ $RPM_BUILD_ROOT%{_localstatedir}/adm/fillup-templates/sysconfig.syslog-ng # create a compatibility link in /sbin ln -sf %{_sbindir}/syslog-ng %{buildroot}/sbin/ # don't package update-patterndb now rm %{buildroot}/usr/bin/update-patterndb # remove devel files rm %{buildroot}/%{_libdir}/libsyslog-ng.{la,so} rm %{buildroot}/%{_libdir}/syslog-ng/*.la rm %{buildroot}/%{_libdir}/pkgconfig/syslog-ng.pc rm -fr %{buildroot}%{_includedir}/syslog-ng rm -fr %{buildroot}%{_datadir}/syslog-ng/tools # decide which to keep rm %{buildroot}/%{_libdir}/syslog-ng/libafsocket.so rm %{buildroot}/%{_libdir}/syslog-ng/libafsocket-notls.so mv %{buildroot}/%{_libdir}/syslog-ng/libafsocket-tls.so \ %{buildroot}/%{_libdir}/syslog-ng/libafsocket.so # create ghosts install -d -m755 %{buildroot}%{syslog_ng_rundir} touch %{buildroot}%{syslog_ng_sockets_cfg} chmod 644 %{buildroot}%{syslog_ng_sockets_cfg} %clean ## ## clean build root ######################################### ## if [ -n "%{buildroot}" ] && [ "%{buildroot}" != "/" ] ; then rm -rf "%{buildroot}" fi %if %{with systemd} && ! %{with systemv} %pre %{service_add_pre syslog-ng.service} %endif %post ## ## post install ############################################# ## /sbin/ldconfig # # remove obsolete variables # %{remove_and_set -n syslog SYSLOG_DAEMON SYSLOG_REQUIRES_NETWORK} %if %{with systemv} %{fillup_and_insserv -ny syslog syslog} %endif # # add SYSLOG_NG_* variables if needed # %{fillup_only -ans syslog ng} %if %{with systemv} # # switch SYSLOG_DAEMON to outself # if test -f etc/sysconfig/syslog ; then sed -i \ -e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON="syslog-ng"/g' \ etc/sysconfig/syslog fi %endif # # create dirs, touch log default files # mkdir -p var/log touch var/log/messages; chmod 640 var/log/messages touch var/log/mail; chmod 640 var/log/mail touch var/log/mail.info; chmod 640 var/log/mail.info touch var/log/mail.warn; chmod 640 var/log/mail.warn touch var/log/mail.err; chmod 640 var/log/mail.err test -f var/log/news && mv -f var/log/news var/log/news.bak mkdir -p -m 0750 var/log/news chown news:news var/log/news touch var/log/news/news.crit; chmod 640 var/log/news/news.crit chown news:news var/log/news/news.crit touch var/log/news/news.err; chmod 640 var/log/news/news.err chown news:news var/log/news/news.err touch var/log/news/news.notice; chmod 640 var/log/news/news.notice chown news:news var/log/news/news.notice # # touch the additional log files we are using # touch var/log/acpid; chmod 640 var/log/acpid touch var/log/firewall; chmod 640 var/log/firewall touch var/log/NetworkManager; chmod 640 var/log/NetworkManager # # generate empty additional-log-sockets.conf file # see also syslog-ng.conf.default in pkg src dir. # additional_sockets="%{syslog_ng_sockets_cfg}" install -d -m750 ${additional_sockets%/*} cat >$additional_sockets <<EOF source chroots { }; EOF chmod 640 "${additional_sockets#/}" # # Enable the syslog-ng systemd service # %if %{with systemd} && ! %{with systemv} # This macro enables based on a systemctl preset config file only %{service_add_post syslog-ng.service} # But we want to enable a syslog-daemon regardless of the preset; # force the creation of a syslog.service alias link (bnc#790805). # We do not check the obsolete SYSLOG_DAEMON variable as we want # to switch when installing it and there is a provider conflict. /usr/bin/systemctl -f enable syslog-ng.service >/dev/null 2>&1 || : %endif %preun ## ## pre uninstall ############################################ ## %if %{with systemd} && ! %{with systemv} %{service_del_preun syslog-ng.service} %else if test -x /etc/init.d/syslog ; then %{stop_on_removal syslog} fi # # reset SYSLOG_DAEMON variable on removal # if test "$1" = "0" -a -f etc/sysconfig/syslog ; then sed -i \ -e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON=""/g' \ etc/sysconfig/syslog fi %endif %postun ## ## post uninstall ########################################### ## # # update linker caches # /sbin/ldconfig %if %{with systemd} && ! %{with systemv} # # cleanup init scripts # %{service_del_postun syslog-ng.service} %else # # stop the rsyslogd daemon when it is running # if test -x /etc/init.d/syslog ; then %{restart_on_update syslog} fi # # cleanup init scripts # %{insserv_cleanup} %endif %files ## ## file list ################################################ ## %defattr(-,root,root) %doc COPYING AUTHORS NEWS %doc syslog-ng.conf.default %attr(755,root,root) /sbin/syslog-ng %attr(755,root,root) %{_sbindir}/syslog-ng %attr(755,root,root) %{_sbindir}/syslog-ng-ctl %if %{with systemd} && ! %{with systemv} %attr(755,root,root) %{_sbindir}/syslog-ng-service-prepare %endif %attr(755,root,root) %{_bindir}/loggen %attr(755,root,root) %{_bindir}/pdbtool %{_mandir}/man5/syslog-ng.conf.5* %{_mandir}/man8/syslog-ng.8* %{_mandir}/man1/pdbtool.1* %{_mandir}/man1/loggen.1* %{_mandir}/man1/syslog-ng-ctl.1* %dir %{_libdir}/syslog-ng %dir %{_datadir}/syslog-ng %dir %{_datadir}/syslog-ng/include %dir %{_datadir}/syslog-ng/include/scl %dir %{_datadir}/syslog-ng/include/scl/pacct %dir %{_datadir}/syslog-ng/include/scl/syslogconf %dir %{_datadir}/syslog-ng/include/scl/system %dir %{_datadir}/syslog-ng/xsd %dir %{_sysconfdir}/syslog-ng %config(noreplace) %{_sysconfdir}/syslog-ng/syslog-ng.conf %config(noreplace) %{_sysconfdir}/syslog-ng/scl.conf %if %{with systemd} && ! %{with systemv} %{_unitdir}/syslog-ng.service %endif %dir %{_localstatedir}/lib/syslog-ng %attr(0755,root,root) %dir %ghost %{syslog_ng_rundir} %attr(0644,root,root) %ghost %{syslog_ng_sockets_cfg} %{_localstatedir}/adm/fillup-templates/sysconfig.syslog-ng %attr(755,root,root) %{_libdir}/libsyslog-ng*.so* %attr(755,root,root) %{_libdir}/syslog-ng/libafamqp.so %attr(755,root,root) %{_libdir}/syslog-ng/libaffile.so %attr(755,root,root) %{_libdir}/syslog-ng/libafprog.so %attr(755,root,root) %{_libdir}/syslog-ng/libafmongodb.so %attr(755,root,root) %{_libdir}/syslog-ng/libafsocket.so %attr(755,root,root) %{_libdir}/syslog-ng/libafuser.so %attr(755,root,root) %{_libdir}/syslog-ng/libbasicfuncs.so %attr(755,root,root) %{_libdir}/syslog-ng/libconfgen.so %attr(755,root,root) %{_libdir}/syslog-ng/libcsvparser.so %attr(755,root,root) %{_libdir}/syslog-ng/libcryptofuncs.so %attr(755,root,root) %{_libdir}/syslog-ng/libdbparser.so %attr(755,root,root) %{_libdir}/syslog-ng/libsyslog-ng-crypto.so %attr(755,root,root) %{_libdir}/syslog-ng/libsyslogformat.so %attr(755,root,root) %{_libdir}/syslog-ng/libsystem-source.so %attr(644,root,root) %{_datadir}/syslog-ng/include/scl/pacct/plugin.conf %attr(644,root,root) %{_datadir}/syslog-ng/include/scl/system/plugin.conf %attr(644,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/README %attr(755,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/convert-syslogconf.awk %attr(644,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/plugin.conf %attr(644,root,root) %{_datadir}/syslog-ng/xsd/* %if %{with dbi} %files sql %defattr(-,root,root) %dir %{_libdir}/syslog-ng %attr(755,root,root) %{_libdir}/syslog-ng/libafsql.so %endif %files json %defattr(-,root,root) %dir %{_libdir}/syslog-ng %attr(755,root,root) %{_libdir}/syslog-ng/libjson-plugin.so %if 0%{?with_smtp} %files smtp %defattr(-,root,root) %dir %{_libdir}/syslog-ng %attr(755,root,root) %{_libdir}/syslog-ng/libafsmtp.so %endif %if 0%{?with_geoip} %files geoip %defattr(-,root,root) %dir %{_libdir}/syslog-ng %attr(755,root,root) %{_libdir}/syslog-ng/libtfgeoip.so %endif %changelog ++++++ syslog-ng-service-prepare ++++++ #!/bin/sh test -s "/etc/sysconfig/syslog" && \ . "/etc/sysconfig/syslog" run_dir="RUN_DIR" cfg_file="ADDITIONAL_SOCKETS" umask 0022 /bin/mkdir -p -m 0755 "${run_dir}" # # Prepare include with sockets in chroot's # echo 'source chroots {' > "${cfg_file}" for variable in ${!SYSLOGD_ADDITIONAL_SOCKET*}; do eval value=\$$variable test -z "$value" && continue test -d "${value%/*}" || continue echo "unix-dgram(\"$value\");" done >> "${cfg_file}" echo '};' >> "${cfg_file}" # # make sure xconsole exists and is a pipe # if test -e /dev/xconsole -a ! -p /dev/xconsole ; then /bin/rm -f /dev/xconsole fi if test ! -e /dev/xconsole ; then /bin/mknod -m 0600 /dev/xconsole p /bin/chown root:tty /dev/xconsole fi exit 0 ++++++ syslog-ng.conf.default ++++++ @version:3.4 @include "scl.conf" # # /etc/syslog-ng/syslog-ng.conf # # File format description can be found in syslog-ng.conf(5) # and in /usr/share/doc/packages/syslog-ng/syslog-ng.txt. # # NOTE: The SuSEconfig script and its syslog-ng.conf.in # configuration template aren't used any more. # # Feel free to edit this file directly. # # # Global options. # options { chain_hostnames(off); flush_lines(0); perm(0640); stats_freq(3600); threaded(yes); }; # # 'src' is our main source definition. you can add # more sources driver definitions to it, or define # your own sources, i.e.: # #source my_src { .... }; # source src { # # include internal syslog-ng messages # note: the internal() soure is required! # internal(); # # read kernel messages directly (12.x) or # does klogd forward them via /dev/log? # file ("/proc/kmsg" program_override("kernel")); # # the default log socket for local logging: # unix-dgram("/dev/log"); # # uncomment to process log messages from network: # #udp(ip("0.0.0.0") port(514)); }; include "ADDITIONAL_SOCKETS"; # # Filter definitions # filter f_iptables { facility(kern) and message("IN=") and message("OUT="); }; filter f_console { level(warn) and facility(kern) and not filter(f_iptables) or level(err) and not facility(authpriv); }; filter f_newsnotice { level(notice) and facility(news); }; filter f_newscrit { level(crit) and facility(news); }; filter f_newserr { level(err) and facility(news); }; filter f_news { facility(news); }; filter f_mailinfo { level(info) and facility(mail); }; filter f_mailwarn { level(warn) and facility(mail); }; filter f_mailerr { level(err, crit) and facility(mail); }; filter f_mail { facility(mail); }; filter f_cron { facility(cron); }; filter f_local { facility(local0, local1, local2, local3, local4, local5, local6, local7); }; # # acpid messages # filter f_acpid_full { program('acpid'); }; filter f_acpid { level(emerg..notice) and program('acpid'); }; # this is for the old acpid < 1.0.6 filter f_acpid_old { program('^\[acpid\]$'); }; filter f_netmgm { program('NetworkManager') or program('nm-dispatcher'); }; filter f_messages { not facility(news, mail) and not filter(f_iptables); }; filter f_warn { level(warn, err, crit) and not filter(f_iptables); }; filter f_alert { level(alert); }; # # Enable this and adopt IP to send log messages to a log server. # #destination logserver { udp("10.10.10.10" port(514)); }; #log { source(src); destination(logserver); }; # # Enable this, if you want to keep all messages in one file: # (don't forget to provide logrotation config) # #destination allmessages { file("/var/log/allmessages"); }; #log { source(src); destination(allmessages); }; # # Most warning and errors on tty10 and on the xconsole pipe: # destination console { file("/dev/tty10" suppress(30) owner(-1) group(-1) perm(-1)); }; log { source(src); source(chroots); filter(f_console); destination(console); }; destination xconsole { pipe("/dev/xconsole" suppress(30) owner(-1) group(-1) perm(-1)); }; log { source(src); source(chroots); filter(f_console); destination(xconsole); }; # Enable this, if you want that root is informed immediately, # e.g. of logins: # #destination root { usertty("root"); }; #log { source(src); source(chroots); filter(f_alert); destination(root); }; # # News-messages in separate files: # destination newscrit { file("/var/log/news/news.crit" suppress(30) owner(news) group(news)); }; log { source(src); source(chroots); filter(f_newscrit); destination(newscrit); }; destination newserr { file("/var/log/news/news.err" suppress(30) owner(news) group(news)); }; log { source(src); source(chroots); filter(f_newserr); destination(newserr); }; destination newsnotice { file("/var/log/news/news.notice" suppress(30) owner(news) group(news)); }; log { source(src); source(chroots); filter(f_newsnotice); destination(newsnotice); }; # # and optionally also all in one file: # (don't forget to provide logrotation config) # #destination news { file("/var/log/news.all"); }; #log { source(src); source(chroots); filter(f_news); destination(news); }; # # Mail-messages in separate files: # destination mailinfo { file("/var/log/mail.info" suppress(30)); }; log { source(src); source(chroots); filter(f_mailinfo); destination(mailinfo); }; destination mailwarn { file("/var/log/mail.warn" suppress(30)); }; log { source(src); source(chroots); filter(f_mailwarn); destination(mailwarn); }; destination mailerr { file("/var/log/mail.err" suppress(30) fsync(yes)); }; log { source(src); source(chroots); filter(f_mailerr); destination(mailerr); }; # # and also all in one file: # destination mail { file("/var/log/mail" suppress(30)); }; log { source(src); source(chroots); filter(f_mail); destination(mail); }; # # acpid messages in one file: # destination acpid { file("/var/log/acpid" suppress(30)); }; destination devnull { }; log { source(src); source(chroots); filter(f_acpid); destination(acpid); flags(final); }; # # if you want more verbose acpid logging, comment the destination(null) # line and uncomment the destination(acpid) line # log { source(src); source(chroots); filter(f_acpid_full); destination(devnull); flags(final); }; # log { source(src); source(chroots); filter(f_acpid_full); destination(acpid); flags(final); }; # # old acpid < 1.0.6 log { source(src); source(chroots); filter(f_acpid_old); destination(acpid); flags(final); }; # # NetworkManager messages in one file: # destination netmgm { file("/var/log/NetworkManager" suppress(30)); }; log { source(src); source(chroots); filter(f_netmgm); destination(netmgm); flags(final); }; # # Cron-messages in one file: # (don't forget to provide logrotation config) # #destination cron { file("/var/log/cron" suppress(30)); }; #log { source(src); source(chroots); filter(f_cron); destination(cron); }; # # Some boot scripts use/require local[1-7]: # destination localmessages { file("/var/log/localmessages" suppress(30)); }; log { source(src); source(chroots); filter(f_local); destination(localmessages); }; # # All messages except iptables and the facilities news and mail: # destination messages { file("/var/log/messages" suppress(30) owner(-1) group(-1) perm(-1)); }; log { source(src); source(chroots); filter(f_messages); destination(messages); }; # # Firewall (iptables) messages in one file: # destination firewall { file("/var/log/firewall" suppress(30)); }; log { source(src); source(chroots); filter(f_iptables); destination(firewall); }; # # Warnings (except iptables) in one file: # destination warn { file("/var/log/warn" suppress(30) fsync(yes)); }; log { source(src); source(chroots); filter(f_warn); destination(warn); }; ++++++ syslog-ng.service ++++++ [Unit] Description=System Logging Service Requires=var-run.mount Requires=syslog.socket After=var-run.mount Conflicts=rsyslog.service syslogd.service [Service] Environment=SYSLOG_NG_PARAMS= ExecStartPre=@sbindir@/syslog-ng-service-prepare EnvironmentFile=-/etc/sysconfig/syslog ExecStart=@sbindir@/syslog-ng -F $SYSLOG_NG_PARAMS ExecReload=/bin/kill -HUP $MAINPID StandardOutput=null [Install] WantedBy=multi-user.target Alias=syslog.service ++++++ syslog-ng.sysconfig ++++++ ## Type: string ## Default: "" ## Config: "" ## ServiceRestart: syslog # # Parameters for Syslog New-Generation - see syslog-ng(8) # SYSLOG_NG_PARAMS="" -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
