Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Ilya Lushcheev                       2:5006/1.10    13 Sep 2006  14:15:54
 To : Alex Mogilnikov
 Subject : syslogd
 -------------------------------------------------------------------------------- 
 
 
 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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 syslogd   Ilya Lushcheev   13 Sep 2006 14:15:54 
 syslogd   Alex Mogilnikov   13 Sep 2006 17:10:47 
Архивное /ru.unix.bsd/268450867fb0.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional