diff options
author | landry <landry@openbsd.org> | 2018-02-01 17:13:44 +0000 |
---|---|---|
committer | landry <landry@openbsd.org> | 2018-02-01 17:13:44 +0000 |
commit | fe73d15b292ce0182ff27bda77447e139ced8cb0 (patch) | |
tree | 270287a76add56d6bf2324d554fd24f4557f1eef /usr.sbin/syslogd | |
parent | document bpf_tap_hdr (diff) | |
download | wireguard-openbsd-fe73d15b292ce0182ff27bda77447e139ced8cb0.tar.xz wireguard-openbsd-fe73d15b292ce0182ff27bda77447e139ced8cb0.zip |
Add an example on how to log messages coming from a given host to a
specific logfile.
ok sthen@ millert@
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslog.conf.5 | 9 |
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 |