summaryrefslogtreecommitdiff
path: root/sysutils/syslog-ng/files/syslog-ng.conf.sample
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2003-03-06 15:00:05 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2003-03-06 15:00:05 +0000
commit8256b3ee57cc6f7afd5b71ca11eab7235fcb53c8 (patch)
tree30f4c2dff8405e681c02c1dd5e730fa485d31dbe /sysutils/syslog-ng/files/syslog-ng.conf.sample
parentUpdate to the latest stable version (0.3.9). (diff)
Update to the latest stable version.
Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=77032
Diffstat (limited to 'sysutils/syslog-ng/files/syslog-ng.conf.sample')
-rw-r--r--sysutils/syslog-ng/files/syslog-ng.conf.sample24
1 files changed, 8 insertions, 16 deletions
diff --git a/sysutils/syslog-ng/files/syslog-ng.conf.sample b/sysutils/syslog-ng/files/syslog-ng.conf.sample
index 0986ac9620a5..f598ca1d2755 100644
--- a/sysutils/syslog-ng/files/syslog-ng.conf.sample
+++ b/sysutils/syslog-ng/files/syslog-ng.conf.sample
@@ -21,6 +21,7 @@ destination security { file("/var/log/security"); };
destination maillog { file("/var/log/maillog"); };
destination lpd-errs { file("/var/log/lpd-errs"); };
destination cron { file("/var/log/cron"); };
+destination consolelog { file("/var/log/console.log"); };
destination all { file("/var/log/all.log"); };
destination newscrit { file("/var/log/news/news.crit"); };
destination newserr { file("/var/log/news/news.err"); };
@@ -28,7 +29,6 @@ destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
-destination root { usertty("root"); };
destination allusers { usertty("*"); };
#destination loghost { udp("loghost" port(514)); };
@@ -37,6 +37,7 @@ destination allusers { usertty("*"); };
#
filter f_auth { facility(auth); };
filter f_authpriv { facility(authpriv); };
+filter f_console { facility(console); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
filter f_ftp { facility(ftp); };
@@ -112,28 +113,19 @@ log { source(src); filter(f_lpr); filter(f_info); destination(lpd-errs); };
log { source(src); filter(f_cron); destination(cron); };
#
-# *.err root
-#
-log { source(src); filter(f_err); destination(root); };
-
-#
-# *.notice;news.err root
-#
-log { source(src); filter(f_notice); destination(root); };
-log { source(src); filter(f_news); filter(f_err); destination(root); };
-
-#
-# *.alert root
+# *.emerg *
#
-log { source(src); filter(f_alert); destination(root); };
+log { source(src); filter(f_emerg); destination(allusers); };
#
-# *.emerg *
+# uncomment this to log all writes to /dev/console to /var/log/console.log
+# console.info /var/log/console.log
#
-log { source(src); filter(f_emerg); destination(allusers); };
+#log { source(src); filter(f_console); filter(f_info); destination(consolelog); };
#
# uncomment this to enable logging of all log messages to /var/log/all.log
+# touch /var/log/all.log and chmod it to mode 600 before it will work
# *.* /var/log/all.log
#
#log { source(src); destination(all); };