diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-02-20 11:56:46 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-02-20 11:56:46 +0000 |
commit | 9e3f14ff572cbad297ff0dba1c85560a75e897cb (patch) | |
tree | 65f486b4f66c2395f5015e5e242b94e20e3dbaa3 /usr.sbin | |
parent | 4a8aedf97d04d2754d1ea0393cc76e3e1fc0acff (diff) |
document syslog to other programs, ok jmc
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslog.conf.5 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5 index 646e3b24866..ddee719bb53 100644 --- a/usr.sbin/syslogd/syslog.conf.5 +++ b/usr.sbin/syslogd/syslog.conf.5 @@ -26,7 +26,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)syslog.conf.5 8.1 (Berkeley) 6/9/93 -.\" $OpenBSD: syslog.conf.5,v 1.20 2006/02/18 02:27:15 niallo Exp $ +.\" $OpenBSD: syslog.conf.5,v 1.21 2007/02/20 11:56:45 henning Exp $ .\" $NetBSD: syslog.conf.5,v 1.4 1996/01/02 17:41:46 perry Exp $ .\" .Dd June 9, 1993 @@ -199,12 +199,19 @@ The field of each line specifies the action to be taken when the .Em selector field selects a message. -There are five forms: +There are six forms: .Bl -bullet .It A pathname (beginning with a leading slash). Selected messages are appended to the file. .It +A pipe to another program (beginning with a leading pipe symbol). +The given program is started and presented the selected messages +on its standard input. +If the program exits, +.Xr syslogd 8 +tries to restart it. +.It A hostname (preceded by an at .Pq Ql @ sign). @@ -290,6 +297,9 @@ mail,news.err /var/log/spoolerr # Store notices and authpriv messages in a 64k buffer named "important" *.notice,authpriv.* :64:important + +# feed everything to logsurfer +*.* |/usr/local/sbin/logsurfer .Ed .Sh SEE ALSO .Xr syslog 3 , |