home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / syslog2b.zip / syslogcf.man < prev    next >
Text File  |  1996-12-02  |  4KB  |  101 lines

  1. SYSLOG.CONF(5)             UNIX Programmer's Manual             SYSLOG.CONF(5)
  2.  
  3. NAME
  4.      syslog.conf - syslogd(8) configuration file
  5.  
  6. DESCRIPTION
  7.      The syslog.conf file is the configuration file for the syslogd(8) pro-
  8.      gram.  It consists of lines with two fields: the selector field which
  9.      specifies the types of messages and priorities to which the line applies,
  10.      and an action field which specifies the action to be taken if a message
  11.      syslogd received matches the selection criteria.  There may not be any
  12.      spaces in the action field.  The selector field is separated from the
  13.      action field by one or more tab or space characters (this is a departure
  14.      from the standard BSD way of doing things: both tabs and spaces may be
  15.      used to separate the selector from the action).
  16.  
  17.  
  18.      The Selector functions are encoded as a facility, a period (``.''), and a
  19.      level, with no intervening white-space.  Both the facility and the level
  20.      are case insensitive.
  21.  
  22.      The facility describes the part of the system generating the message, and
  23.      is one of the following keywords: auth, authpriv, cron, daemon, kern,
  24.      lpr, mail, mark, news, syslog, user, uucp and local0 through local7.
  25.      These keywords (with the exception of mark) correspond to the similar
  26.      ``LOG_'' values specified to the openlog(3) and syslog(3) library rou-
  27.      tines.
  28.  
  29.      The level describes the severity of the message, and is a keyword, op-
  30.      tionally preceded by an equals (``=''), from the following ordered list
  31.      (higher to lower): emerg, alert, crit, err, warning, notice, info, and
  32.      debug.  These keywords correspond to the similar (LOG_) values specified
  33.      to the syslog library routine.
  34.  
  35.      See syslog(3) for a further descriptions of both the facility and level
  36.      keywords and their significance.
  37.  
  38.      If a received message matches the specified facility and is of the speci-
  39.      fied level (or a higher level if level was specified without ``='') , the
  40.      action specified in the action field will be taken.
  41.  
  42.      Multiple selectors may be specified for a single action by separating
  43.      them with semicolon (``;'') characters.  It is important to note, howev-
  44.      er, that each selector can modify the ones preceding it.
  45.  
  46.      Multiple facilities may be specified for a single level by separating
  47.      them with comma (``,'') characters.
  48.  
  49.      An asterisk (``*'') can be used to specify all facilities or all levels.
  50.  
  51.      The special facility ``mark'' receives a message at priority ``info'' ev-
  52.      ery 20 minutes (see syslogd(8)).  This is not enabled by a facility field
  53.      containing an asterisk.
  54.  
  55.      The special level ``none'' disables a particular facility.
  56.  
  57.      The action field of each line specifies the action to be taken when the
  58.      selector field selects a message.  There are four forms:
  59.  
  60.      o   A pathname (beginning with a leading slash).  Selected messages are
  61.          appended to the file.
  62.  
  63.      o   A hostname (preceded by an at (``@'') sign).  Selected messages are
  64.          forwarded to the syslogd program on the named host.
  65.  
  66.      o   The keyword ``CON''. Selected messages are written to stdout.
  67.  
  68.      Blank lines and lines whose first non-blank character is a hash (``#'')
  69.      character are ignored.
  70.  
  71. EXAMPLES
  72.      A configuration file might appear as follows:
  73.  
  74.      # Log anything (except mail) of level info or higher.
  75.      # Don't log private authentication messages!
  76.      *.info;mail.none;authpriv.none                        c:\logs\messages
  77.  
  78.      # Log debug messages only
  79.      *.=debug                                              c:\logs\debug
  80.  
  81.      # Save mail and news errors of level err and higher in a
  82.      # special file.
  83.      uucp,news.crit                                        c:\logs\spoolerr
  84.  
  85. FILES
  86.      %etc%\syslog.cnf  The syslogd(8) configuration file.
  87.  
  88. BUGS
  89.      The effects of multiple selectors are sometimes not intuitive.  For exam-
  90.      ple ``mail.crit,*.err'' will select ``mail'' facility messages at the
  91.      level of ``err'' or higher, not at the level of ``crit'' or higher.
  92.  
  93. SEE ALSO
  94.      syslog(3),  syslogd(8)
  95.  
  96. HISTORY
  97.      The syslog.conf file format is currently under development.
  98.  
  99. BSD Experimental                 May 10, 1991                                2
  100.  
  101.