Skip to content

Commit

Permalink
fix up documentation/comments: processname is not defined, but progra…
Browse files Browse the repository at this point in the history
…mname

is..

a couple other minor documentation fixes that igor caught...

MFC after:	1 week
  • Loading branch information
jmgurney committed Dec 10, 2020
1 parent 5a28499 commit 37d8e9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions usr.sbin/syslogd/syslog.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.\" @(#)syslog.conf.5 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
.Dd March 26, 2020
.Dd December 10, 2020
.Dt SYSLOG.CONF 5
.Os
.Sh NAME
Expand Down Expand Up @@ -73,7 +73,7 @@ Note that if you use spaces as separators, your
.Nm
might be incompatible with other Unices or Unix-like systems.
This functionality was added for ease of configuration
(e.g.\& it is possible to cut-and-paste into
(e.g.,\& it is possible to cut-and-paste into
.Nm ) ,
and to avoid possible mistakes.
This change however preserves
Expand Down Expand Up @@ -547,11 +547,11 @@ A configuration file might appear as follows:
# Log all kernel messages, authentication messages of
# level notice or higher, and anything of level err or
# higher to the console.
# Don't log private authentication messages!
# Do not log private authentication messages!
*.err;kern.*;auth.notice;authpriv.none;mail.crit /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
# Do not log private authentication messages!
*.info;mail.none;authpriv.none /var/log/messages

# Log daemon messages at debug level only
Expand Down Expand Up @@ -600,7 +600,7 @@ console.* /var/log/console.log
!*

# Log messages from bird or bird6 into one file
:processname, regex, "^bird6?$"
:programname, regex, "^bird6?$"
*.* /var/log/bird-all.log

# Log messages from servers in racks 10-19 in multiple locations, case insensitive
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/syslogd/syslogd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,7 @@ prop_filter_compile(struct prop_filter *pfilter, char *filter)
/*
* Here's some filter examples mentioned in syslog.conf(5)
* 'msg, contains, ".*Deny.*"'
* 'processname, regex, "^bird6?$"'
* 'programname, regex, "^bird6?$"'
* 'hostname, icase_ereregex, "^server-(dcA|podB)-rack1[0-9]{2}\\..*"'
*/

Expand Down

0 comments on commit 37d8e9a

Please sign in to comment.