Gentoo Archives: gentoo-user

From: Dan Egli <dan@×××××××××××.site>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] syslog-ng: filter plugin NOT not found ????
Date: Wed, 16 Dec 2020 19:30:17
Message-Id: 4cea33ae-39ef-f846-c98e-707a3da0b54e@newideatest.site
In Reply to: Re: [gentoo-user] syslog-ng: filter plugin NOT not found ???? by David Haller
1 23 is the hard coded constant for local7. They are identical.
2 facility(23) and facility(local7) mean the exact same thing.
3
4 On 12/16/2020 10:30 AM, David Haller wrote:
5 > Hello,
6 >
7 > On Wed, 16 Dec 2020, Todd Goodman wrote:
8 >> I think you need a semi-colon inside and after the right curly brace ('}')
9 >>
10 >> You right braces are parentheses and not right curly braces too (maybe a cut
11 >> and paste issue?)
12 >>
13 >> FWIW, the following is what I use to separate my mail logs out and it works:
14 >>
15 >> destination messages { file("/var/log/messages"); };
16 >> destination maillog { file("/var/log/maillog"); };
17 >>
18 >> filter f_mail { facility(mail); };
19 >> filter f_messages { not facility(mail); };
20 >>
21 >> log { source(src); filter(f_mail); destination(maillog); };
22 >> log { source(src); filter(f_messages); destination(messages); };
23 >>
24 >> On 12/15/2020 10:44 PM, Dan Egli wrote:
25 >>> Help me understand this, please?  I have ISC dhcpd configured to log to
26 >>> syslog.local7 (since I don't see an option to force it into it's own log
27 >>> file). So I went into my syslog-ng file and created two filters, just
28 >>> like on the example page of syslog-ng.com:
29 >>>
30 >>> filter dhcpmsgs { facility(23) );
31 >>> filter non_dhcp { NOT filter(dhcpmsgs) )
32 > Also, where's that '23' coming from? Shouldn't that be
33 >
34 > filter dhcpmsgs { facility(local7); };
35 >
36 > HTH,
37 > -dnh
38 >
39 --
40 Dan Egli
41 From my Test Server