syslogd

From
Ilya Lushcheev (2:5006/1.10)
To
Alex Mogilnikov (2:5054/37.63)
Date
2006-09-13T14:15:54Z
Area
RU.UNIX.BSD
Hello, Alex!

Alex Mogilnikov wrote in a message to Ilya Lushcheev:

 IL> логов? Для хостов есть +host и -host а для программ только
 IL> !program,
 IL>  Существует ли модификатор "все, кроме этой программы"?

 AM>     man syslog.conf

Each block of lines is separated from the previous block by a program or
hostname specification.  A block will only log messages corresponding to
the most recent program and hostname specifications given.  Thus, a block
which selects `ppp' as the program, directly followed by a block that
selects messages from the hostname `dialhost', then the second block will
only log messages from the ppp(8) program on dialhost.

A program specification is a line beginning with `#!prog' or `!prog' (the
                                                  ^^^^^^^^^^^^^^^^^^
                                                 в общем-то, это все

former is for compatibility with the previous syslogd, if one is sharing
syslog.conf files, for example) and the following blocks will be associ-
ated with calls to syslog(3) from that specific program.  A program spec-
ification for `foo' will also match any message logged by the kernel with
the prefix `foo: '.  A hostname specification of the form `#+hostname' or
`+hostname' and the following blocks will be applied to messages received
from the specified hostname.  Alternatively, a hostname specification
`#-hostname' or `-hostname' causes the following blocks to be applied to
messages from any host but the one specified.  If the hostname is given
as `@', the local hostname will be used.  A program or hostname specifi-
cation may be reset by giving the program or hostname as `*'.



 AM>     /\!-
Попробовал так:
/\!-ppp
*.*;security.none;mail.none;cron.none       /var/log/messages

результат: не пишет ничего в messages



  Илья 
---
 * Origin:            (2:5006/1.10)
SEEN-BY: 50/12 203 400/814 450/159 186 1024 451/30 461/43 132 640 469/999
SEEN-BY: 550/196 4616/3 4625/8 4635/4 4641/444 5000/76 5000 5006/1 8 9 10 14
SEEN-BY: 5006/15 16 17 5007/1 5010/70 352 5011/13 5012/46 5015/28 5019/31
SEEN-BY: 5020/18 154 175 194 400 545 549 715 758 982 1057 1523 1604 1630 1909
SEEN-BY: 5020/1922 2142 2238 2395 2450 2590 2871 4441 5021/3 29 5022/128
SEEN-BY: 5025/3 750 5026/45 5027/12 5029/32 5030/49 500 556 966 1063 1080 1900
SEEN-BY: 5030/1957 2828 5031/47 70 5034/10 13 5035/3 38 5036/1 5040/47 5042/13
SEEN-BY: 5045/7 5049/1 50 97 5051/15 5054/1 4 8 9 11 28 35 36 37 45 63 66 67
SEEN-BY: 5054/70 75 84 85 5055/95 5057/1 5059/9 5060/88 5061/15 5062/1 10
SEEN-BY: 5063/3 5064/7 5066/18 5074/9 5075/5 5077/70 5080/80 1003 5082/6
SEEN-BY: 5083/21 5085/13 5090/108 5094/4 5095/20 5096/18 5099/11 6001/3 10
PATH: 5006/1 5020/400 4441 545 5054/1 37