summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandry Breuil <landry@cvs.openbsd.org>2018-02-01 17:13:45 +0000
committerLandry Breuil <landry@cvs.openbsd.org>2018-02-01 17:13:45 +0000
commit42556df82af57501e11eabb82bc1e8cd192c9229 (patch)
treea9664fb19df13a7f742458966f9c5ec27cb3cbea
parent5640f2f5a238794fac7b95b6db5755cb2a241740 (diff)
Add an example on how to log messages coming from a given host to a
specific logfile. ok sthen@ millert@
-rw-r--r--usr.sbin/syslogd/syslog.conf.59
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5
index 28029f8a157..af05211cf0e 100644
--- a/usr.sbin/syslogd/syslog.conf.5
+++ b/usr.sbin/syslogd/syslog.conf.5
@@ -26,10 +26,10 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)syslog.conf.5 8.1 (Berkeley) 6/9/93
-.\" $OpenBSD: syslog.conf.5,v 1.34 2016/07/06 19:29:13 millert Exp $
+.\" $OpenBSD: syslog.conf.5,v 1.35 2018/02/01 17:13:44 landry Exp $
.\" $NetBSD: syslog.conf.5,v 1.4 1996/01/02 17:41:46 perry Exp $
.\"
-.Dd $Mdocdate: July 6 2016 $
+.Dd $Mdocdate: February 1 2018 $
.Dt SYSLOG.CONF 5
.Os
.Sh NAME
@@ -306,6 +306,11 @@ mail.* /var/log/maillog
# Root and Eric get alert and higher messages.
*.alert root,eric
+# Log everything coming from host bastion to a separate file.
+++bastion
+*.* /var/log/bastion
++*
+
# Save mail and news errors of level err and higher in a
# special file.
mail,news.err /var/log/spoolerr