From fe73d15b292ce0182ff27bda77447e139ced8cb0 Mon Sep 17 00:00:00 2001 From: landry Date: Thu, 1 Feb 2018 17:13:44 +0000 Subject: [PATCH] Add an example on how to log messages coming from a given host to a specific logfile. ok sthen@ millert@ --- usr.sbin/syslogd/syslog.conf.5 | 9 +++++++-- 1 file 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 -- 2.20.1