1 |
Hello, |
2 |
|
3 |
On Wed, 16 Dec 2020, Todd Goodman wrote: |
4 |
>I think you need a semi-colon inside and after the right curly brace ('}') |
5 |
> |
6 |
>You right braces are parentheses and not right curly braces too (maybe a cut |
7 |
>and paste issue?) |
8 |
> |
9 |
>FWIW, the following is what I use to separate my mail logs out and it works: |
10 |
> |
11 |
>destination messages { file("/var/log/messages"); }; |
12 |
>destination maillog { file("/var/log/maillog"); }; |
13 |
> |
14 |
>filter f_mail { facility(mail); }; |
15 |
>filter f_messages { not facility(mail); }; |
16 |
> |
17 |
>log { source(src); filter(f_mail); destination(maillog); }; |
18 |
>log { source(src); filter(f_messages); destination(messages); }; |
19 |
> |
20 |
>On 12/15/2020 10:44 PM, Dan Egli wrote: |
21 |
>> Help me understand this, please? I have ISC dhcpd configured to log to |
22 |
>> syslog.local7 (since I don't see an option to force it into it's own log |
23 |
>> file). So I went into my syslog-ng file and created two filters, just |
24 |
>> like on the example page of syslog-ng.com: |
25 |
>> |
26 |
>> filter dhcpmsgs { facility(23) ); |
27 |
>> filter non_dhcp { NOT filter(dhcpmsgs) ) |
28 |
|
29 |
Also, where's that '23' coming from? Shouldn't that be |
30 |
|
31 |
filter dhcpmsgs { facility(local7); }; |
32 |
|
33 |
HTH, |
34 |
-dnh |
35 |
|
36 |
-- |
37 |
printk(KERN_DEBUG "%s: Flex. Ttttt...\n", DRV_NAME); |
38 |
linux-2.6.6/drivers/net/wan/dscc4.c |