NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: precise syslogd configuration

On Sun, Mar 08, 2009 at 07:54:34AM -0400, matthew sporleder wrote:
> Anyway, a lot of daemons will give you the option to changing the
> syslog facility (LOCAL7, for example) to make this easier, but since

  This is supported, and is a satisfactory compromise in some
cases (I use it)--requiring fairly few changes to existing conf
files).  Per dhcpd.conf(5):

The log-facility statement

   log-facility facility;

   This  statement causes the DHCP server to do all of its logging on
   the specified log facility once the dhcpd.conf file has been read.
   By default the DHCP server logs to the daemon facility.   Possible
   log facilities include auth, authpriv, cron,  daemon,  ftp,  kern,
   lpr,  mail,  mark,  news,  ntp,  security, syslog, user, uucp, and
   local0 through local7.   Not all of these facilities are available
   on  all  systems,  and  there may be other facilities available on
   other systems.

   In addition to setting this value, you may  need  to  modify  your
   syslog.conf  file  to  configure logging of the DHCP server.   For
   example, you might add a line like this:

        local7.debug /var/log/dhcpd.log

  That is, add this line to /etc/dhcpd.conf :

    log-facility local7;

  And add "local7" to the appropriate "none" clause of
/etc/syslog.conf, e.g. :

  *.info;auth,authpriv,cron,ftp,kern,local7,lpr,mail.none  /var/log/messages

Cheers,  --Dave

Home | Main Index | Thread Index | Old Index