From 6b5dfacc052d3b56fe236cf30f56bc9d5982f283 Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 8 Feb 2000 21:57:28 +0000 Subject: [PATCH] Add two commented out syslog.conf entries, one to demonstrate the use of an all.log for logging all messages, and one to demonstrate use of loghosts. Also, a matching entry in newsyslog.conf for all.log. Per request of Garrett Wollman, also modified the maillog entry to use the @T newsyslog time specification mechanism. Because newsyslog doesn't support the mod date specification machanism, couldn't change other entries that required more than one execution a month, but less than once a day. Approved by: jkh Reviewed by: freebsd-security --- etc/newsyslog.conf | 3 ++- etc/syslog.conf | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/newsyslog.conf b/etc/newsyslog.conf index 34d2b071fa7..3e0508e594e 100644 --- a/etc/newsyslog.conf +++ b/etc/newsyslog.conf @@ -6,9 +6,10 @@ /var/log/amd.log 664 7 100 * Z /var/log/kerberos.log 664 7 100 * Z /var/log/lpd-errs 664 7 100 * Z -/var/log/maillog 664 7 * 24 Z +/var/log/maillog 664 7 * @T00 Z /var/log/sendmail.st 664 10 * 168 B /var/log/messages 664 5 100 * Z +/var/log/all.log 600 7 * @T00 Z /var/log/slip.log 600 3 100 * Z /var/log/ppp.log 600 3 100 * Z /var/log/security 600 10 100 * Z diff --git a/etc/syslog.conf b/etc/syslog.conf index a61df5ce5b4..54a2876b455 100644 --- a/etc/syslog.conf +++ b/etc/syslog.conf @@ -12,6 +12,10 @@ cron.* /var/log/cron *.notice;news.err root *.alert root *.emerg * +# uncomment this to enable logging of all log messages to /var/log/all.log +#*.* /var/log/all.log +# uncomment this to enable logging to a remote loghost named loghost +#*.* @loghost # uncomment these if you're running inn # news.crit /var/log/news/news.crit # news.err /var/log/news/news.err -- 2.45.0