syslog question

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Jan 19 05:29:41 PST 2004


On Mon, Jan 19, 2004 at 01:09:13PM +0100, Didier WIROTH wrote:
> Hi,
> I've this entry in syslog.conf (which is default):
> 
> *.err;kern.debug;auth.notice;mail.crit          /dev/console
> 
> I would like also to log those messages in a file called for example:
> /var/log/console.critical (I want both, /dev/console and the log file!)
> 
> How should I modify the above line to achive this?

Just add a second line with the same selectors, but a different
action.  Eg.

    *.err;kern.debug;auth.notice;mail.crit          /dev/console
    *.err;kern.debug;auth.notice;mail.crit          /var/log/console.critical

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040119/cf78ecdc/attachment.bin


More information about the freebsd-questions mailing list