Add an example on how to log messages coming from a given host to a
authorlandry <landry@openbsd.org>
Thu, 1 Feb 2018 17:13:44 +0000 (17:13 +0000)
committerlandry <landry@openbsd.org>
Thu, 1 Feb 2018 17:13:44 +0000 (17:13 +0000)
specific logfile.
ok sthen@ millert@

usr.sbin/syslogd/syslog.conf.5

index 28029f8..af05211 100644 (file)
 .\" 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