problem with filter behavior in 2.0.4
I'm seeing some results with filtering that I don't expect / understand. I have the following statements in syslog-ng.conf (I am just giving the relevant configuration lines): source src { unix-stream("/dev/log"); internal(); file("/proc/kmsg"); }; filter kern { facility(kern); }; filter kern_critical { filter(kern) and priority(emerg .. err); }; filter critical { filter(kern_critical) or match("crit*") or priority(emerg .. crit); }; template verbose_msg_fmt { template("$FULLDATE $FACILITY.$PRIORITY $MSG\n"); template_escape(no); }; destination root_tty { usertty("root"); }; destination critical_logfile { file("/var/log/critical.log" template(verbose_msg_fmt)); }; log { source(src); filter(critical); destination(root_tty); destination(critical_logfile); }; There are no other configuration lines which reference the critical_logfile destination , and no destination has a "final" flag. Now, when I check /var/log/critical.log, I get messages from the facility.priority combination of daemon.warning that do not contain any string starting with "crit". I also get messages from daemon.err, which also shouldn't match the filter. For example: 2007 Jul 12 10:51:07 daemon.warning <message, not containing the string crit anywhere> 2007 Jul 11 20:33:57 daemon.err <message, not containing the string crit anywhere> IIRC, I was using these same lines in a syslog-ng 1.6.x installation without these kinds of results. Also, a question: does it matter if the priority range is given in ascending or descending order (syslog's numerical code-wise)? Thanks for any insight. -- aero1967@fastmail.fm -- http://www.fastmail.fm - IMAP accessible web-mail
Hi , I downloaded and installed event.pc suucessfuly. Whe I run ./configure from syslog2.0.4 source directory I get the following error : checking for LIBNET... which: no libnet-config in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sb in:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) ./configure: line 6437: --defines: command not found ./configure: line 6438: --libs: command not found Any ideas what may be the problem ?
I had this when I compiled syslog-ng... I did the following: 1) Get the old version of LIBNET (1.0.2a) (contains libnet-config), compile and install 2) Get the new version of LIBNET (1.1) (doesn't contain libnet-config), compile and install it with a different directory prefix. 3) Copy the new compiled versions of files over the old ones. Then it all worked. -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Tamer Tayea Sent: 13 July 2007 3:24 pm To: Syslog-ng users' and developers' mailing list Subject: [syslog-ng] Compliation errors Hi , I downloaded and installed event.pc suucessfuly. Whe I run ./configure from syslog2.0.4 source directory I get the following error : checking for LIBNET... which: no libnet-config in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sb in:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) ./configure: line 6437: --defines: command not found ./configure: line 6438: --libs: command not found Any ideas what may be the problem ? _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
I downloaded and installed libnet-1.0.2a-2.i386.rpm , then I ran ./configure ...It didn`t error out. Then, I tried to run >>make .. I got the following error .. syslog-ng-2.0.4]# make make all-recursive make[1]: Entering directory `/root/Desktop/syslog/syslog-ng-2.0.4' Making all in src make[2]: Entering directory `/root/Desktop/syslog/syslog-ng-2.0.4/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -g -MT cfg-grammar.o -MD -MP -MF ".deps/cfg-grammar.Tpo" \ -c -o cfg-grammar.o `test -f 'cfg-grammar.c' || echo './'`cfg-grammar.c; \ then mv -f ".deps/cfg-grammar.Tpo" ".deps/cfg-grammar.Po"; \ else rm -f ".deps/cfg-grammar.Tpo"; exit 1; \ fi In file included from /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar. y:15: afinet.h:61: error: syntax error before "libnet_t" afinet.h:61: warning: no semicolon at end of struct or union afinet.h:63: warning: type defaults to `int' in declaration of `AFInetDestDriver' afinet.h:63: warning: data definition has no type or storage class /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar. y: In function `yyparse': /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar. y:590: error: syntax error before ')' token /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar. y:623: error: syntax error before ')' token make[2]: *** [cfg-grammar.o] Error 1 make[2]: Leaving directory `/root/Desktop/syslog/syslog-ng-2.0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Desktop/syslog/syslog-ng-2.0.4' make: *** [all] Error 2
On Fri, 2007-07-13 at 11:56 -0400, Tamer Tayea wrote:
I downloaded and installed libnet-1.0.2a-2.i386.rpm , then I ran ./configure ...It didn`t error out. Then, I tried to run >>make .. I got the following error ..
you need libnet-devel, or disable spoof-source support. -- Bazsi
I have tried to install libnet-devel, I got this error
rpm -ivh libnet-devel-1.1.2.1-3.i386.rpm warning: libnet-devel-1.1.2.1-3.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1 Preparing... ########################################### [100%] file /usr/bin/libnet-config from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-asn1.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-functions.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-headers.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-macros.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-structures.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2
On Fri, 13 Jul 2007 14:33:08 EDT, Tamer Tayea said:
I have tried to install libnet-devel, I got this error
rpm -ivh libnet-devel-1.1.2.1-3.i386.rpm
What you *wanted* to do was: rpm -Uvh libnet-1.1.2.1-3.i386.rpm libnet-devel-1.1.2.1-3.i386.rpm (you want to keep 'foo' and 'foo-devel' in sync). -U rather than -i means "install or update, as needed", so it doesn't whinge at you that libnet is already installed.
When I run make & make install , I get the following error /usr/bin/ld: cannot find -lnet collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/root/Desktop/slng/syslog-ng-2.0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Desktop/slng/syslog-ng-2.0.4' make: *** [all] Error 2
I took the lazy way out, after struggling to find the right versions of libnet: ./configure --disable-spoof-source -- tim --
-----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Tamer Tayea Sent: Friday, July 13, 2007 2:33 PM To: Syslog-ng users' and developers' mailing list Subject: RE: [syslog-ng] Compliation errors
I have tried to install libnet-devel, I got this error
rpm -ivh libnet-devel-1.1.2.1-3.i386.rpm warning: libnet-devel-1.1.2.1-3.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1 Preparing... ########################################### [100%] file /usr/bin/libnet-config from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-asn1.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-functions.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-headers.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-macros.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-structures.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2
syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
I tried ./configure --disable-spoof-source.. The compilation went fine --no errors reported-- but I don`t know where to find the files produced by the compilation.. -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Tim Boyer Sent: Saturday, July 14, 2007 9:42 AM To: 'Syslog-ng users' and developers' mailing list' Subject: RE: [syslog-ng] Compliation errors I took the lazy way out, after struggling to find the right versions of libnet: ./configure --disable-spoof-source -- tim --
-----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Tamer Tayea Sent: Friday, July 13, 2007 2:33 PM To: Syslog-ng users' and developers' mailing list Subject: RE: [syslog-ng] Compliation errors
I have tried to install libnet-devel, I got this error
rpm -ivh libnet-devel-1.1.2.1-3.i386.rpm warning: libnet-devel-1.1.2.1-3.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1 Preparing... ########################################### [100%] file /usr/bin/libnet-config from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-asn1.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-functions.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-headers.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-macros.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2 file /usr/include/libnet/libnet-structures.h from install of libnet-devel-1.1.2.1-3 conflicts with file from package libnet-1.0.2a-2
syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
syslog-ng 2.0.4 I am trying to use the log_prefix option on the internal() source but I get errors on the line. source int { internal(log_prefix("sometext: ")); }; I suspect that the documentation that log_prefix applies to all sources is incorrect. I would like the internal source to accept this option. Evan Rempel
participants (7)
-
aero1967@fastmail.fm
-
Balazs Scheidler
-
Evan Rempel
-
Moxey, Joel, VF UK - Technology (TS)
-
Tamer Tayea
-
Tim Boyer
-
Valdis.Kletnieks@vt.edu