freebsd-dev/usr.sbin/syslogd
Andrey V. Elsukov 7d367c51c8 Add property-based filters for syslogd.
Property-based filters allow substring and regular expressions
(see re_format(7)) matching against various message attributes.
Filter specification starts with '#:' or ':' followed by three
comma-separated fields property, operator, "value". Value must be
double-quoted. A double quote and backslash must be escaped by a
blackslash.

Following properties are supported as test value:
o msg - body of the message received;
o programname - program name sent the message;
o hostname - hostname of message's originator;
o source - an alias for hostname.

Supported operators:
o contains - true if filter value is found as a substring of property;
o isequal - true if filter value is equal to property;
o startswith - true if property starts with filter value;
o regex - true if property matches basic regular expression defined
    in filter value;
o ereregex - true if property matches extended regular expression
    defined in filter value;

Operator may be prefixed by '!' to invert compare logic or by
'icase_' to make comparison function case insensitive.

Submitted by:	Boris N. Lytochkin <lytboris at gmail com>
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D23468
2020-03-26 11:54:25 +00:00
..
ftp.conf Move all syslogd related configs to usr.sbin/syslogd/ 2018-08-21 17:01:47 +00:00
lpr.conf Move all syslogd related configs to usr.sbin/syslogd/ 2018-08-21 17:01:47 +00:00
Makefile Remove trailing slash in pathname so that valid METALOG is created in the 2018-08-25 20:19:16 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pathnames.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ppp.conf Move all syslogd related configs to usr.sbin/syslogd/ 2018-08-21 17:01:47 +00:00
syslog.conf log daemon.info to /var/log/daemon.log by default 2019-09-17 20:03:20 +00:00
syslog.conf.5 Add property-based filters for syslogd. 2020-03-26 11:54:25 +00:00
syslogd.8 Document that syslogd -v has no effect when RFC 5424 mode is enabled. 2018-07-02 11:02:27 +00:00
syslogd.c Add property-based filters for syslogd. 2020-03-26 11:54:25 +00:00