diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-10-19 14:55:03 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-10-19 14:55:03 +0000 |
commit | 95495732701803b8c25d4d324b975d7b88f1432d (patch) | |
tree | 97072672c6758e81739e394f09d2e833d992848c /doc/rsyslog_conf.html | |
parent | 42017aa38855678653baeb1cf88b87564abe0c27 (diff) | |
download | rsyslog-95495732701803b8c25d4d324b975d7b88f1432d.tar.gz rsyslog-95495732701803b8c25d4d324b975d7b88f1432d.tar.xz rsyslog-95495732701803b8c25d4d324b975d7b88f1432d.zip |
doc updates for 1.11.1
Diffstat (limited to 'doc/rsyslog_conf.html')
-rw-r--r-- | doc/rsyslog_conf.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/rsyslog_conf.html b/doc/rsyslog_conf.html index 38a0ab80..726ffa02 100644 --- a/doc/rsyslog_conf.html +++ b/doc/rsyslog_conf.html @@ -205,6 +205,27 @@ operating system versions that do so. So it can still make sense to enforce a <li>"traditional" severity and facility based selectors</li>
<li>property-based filters</li>
</ul>
+<h3>Blocks</h3>
+<p>Rsyslogd supports BSD-style blocks inside rsyslog.conf. Each block of lines
+is separated from the previous block by a program or hostname specification. A
+block will only log messages corresponding to the most recent program and
+hostname specifications given. Thus, a block which selects ‘ppp’ as the program,
+directly followed by a block that selects messages from the hostname ‘dialhost’,
+then the second block will only log messages from the ppp program on dialhost.
+</p>
+<p>A program specification is a line beginning with ‘!prog’ and the following
+blocks will be associated with calls to syslog from that specific program. A
+program specification for ‘foo’ will also match any message logged by the kernel
+with the prefix ‘foo: ’. A hostname specification of the form ‘+hostname’ and
+the following blocks will be applied to messages received from the specified
+hostname. Alternatively, a hostname specification ‘-hostname’ causes the
+following blocks to be applied to messages from any host but the one specified.
+If the hostname is given as ‘@’, the local hostname will be used. (NOT YET
+IMPLEMENTED) A program or hostname specification may be reset by giving the
+program or hostname as ‘*’.</p>
+<p>Please note that the "#!prog", "#+hostname" and "#-hostname" syntax available
+in BSD syslogd is not supported by rsyslogd. By default, no hostname or program
+is set.</p>
<h3>Selectors</h3>
<p><b>Selectors are the traditional way of filtering syslog messages.</b> They
have been kept in rsyslog with their orginal syntax, because it is well-known,
|