[syslog-ng]syslog-ng: contrib file patch

Jose Pedro Oliveira syslog-ng@lists.balabit.hu
Fri, 18 Apr 2003 20:10:25 +0100


This is a multi-part message in MIME format.
--------------090801040402060903060100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Balazs Scheidler,

Attached to this message is a patch that corrects
the syslog-ng configuration file for Red Hat systems
available in the contrib directory.

It also creates two new files in the contrib directory:

1 - syslog-ng.sysconfig.RedHat

    (file to be copied to /etc/sysconfig/syslog-ng)

2 - syslog-ng.logrotate.RedHat

    (file to be copied to /etc/logrotate.d/syslog-ng)


Regards,
jpo
-- 
José Pedro Oliveira
mailto: jpo@di.uminho.pt * http://gsd.di.uminho.pt/~jpo

--------------090801040402060903060100
Content-Type: text/plain;
 name="syslog-ng.contrib-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="syslog-ng.contrib-patch"

diff -ruN syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.conf.RedHat syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.conf.RedHat
--- syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.conf.RedHat	Thu Aug 22 15:05:39 2002
+++ syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.conf.RedHat	Fri Apr 18 19:48:52 2003
@@ -15,6 +15,11 @@
 # Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 2002
 #	- use the log_prefix option as per Balazs Scheidler's email
 #
+# Updated by Jose Pedro Oliveira (<jpo@di.uminho.pt>) - 05 Apr 2003
+#	- corrected filters f_filter2 and f_filter6
+#         these filters were only logging messages from one priority
+#         level and not messages with priorities greater or equal
+#
 
 options { sync (0);
           time_reopen (10);
@@ -38,14 +43,13 @@
 destination d_mlal { usertty("*"); };
 
 filter f_filter1     { facility(kern); };
-filter f_filter2     { level(info) and
-                     not (facility(mail)
-			or facility(authpriv) or facility(cron)); };
+filter f_filter2     { level(info..emerg) and
+                       not facility(mail,authpriv,cron); };
 filter f_filter3     { facility(authpriv); };
 filter f_filter4     { facility(mail); };
 filter f_filter5     { level(emerg); };
 filter f_filter6     { facility(uucp) or
-                     (facility(news) and level(crit)); };
+                       (facility(news) and level(crit..emerg)); };
 filter f_filter7     { facility(local7); };
 filter f_filter8     { facility(cron); };
 
diff -ruN syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.logrotate.RedHat syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.logrotate.RedHat
--- syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.logrotate.RedHat	Thu Jan  1 01:00:00 1970
+++ syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.logrotate.RedHat	Fri Apr 18 19:48:52 2003
@@ -0,0 +1,6 @@
+/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
+    sharedscripts
+    postrotate
+	/bin/kill -HUP `cat /var/run/syslog-ng.pid 2> /dev/null` 2> /dev/null || true
+    endscript
+}
diff -ruN syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.sysconfig.RedHat syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.sysconfig.RedHat
--- syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.sysconfig.RedHat	Thu Jan  1 01:00:00 1970
+++ syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.sysconfig.RedHat	Fri Apr 18 19:48:52 2003
@@ -0,0 +1,15 @@
+#----------------------------------------------------------------------
+#  Options
+#----------------------------------------------------------------------
+#  -C - <chroot-dir>
+#  -d - Set "debug mode".  Prints out various messages to aid in 
+#       debugging and stops it from becoming a daemon.  To activate 
+#       debugging in the yacc parser, either use this option twice or 
+#       combine with -v.
+#  -p - <filename> Write the current PID information to the specified 
+#       file.
+#  -v - Enable verbose mode.  Process will not become a daemon.  Prints
+#       out fewer messages, compared to -d.
+#  -V - Print the version number.
+#----------------------------------------------------------------------
+SYSLOGNG_OPTIONS=""

--------------090801040402060903060100--