From 43df3e50decc185be43ce0269641de7997101ebc Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 1 Aug 2007 08:03:52 +0000 Subject: added $include directive --- doc/rsyslog_conf.html | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/doc/rsyslog_conf.html b/doc/rsyslog_conf.html index 40801383..7fff442e 100644 --- a/doc/rsyslog_conf.html +++ b/doc/rsyslog_conf.html @@ -103,9 +103,17 @@ $FileCreateMode 0644
*.* /var/log/file-with-0644

As you can see, open modes depend on position in the config file. Note the first line, which is created with the hardcoded default creation mode.

+

DebugPrintCFSyslineHandlerList

+

Specifies whether or not the configuration file sysline handler list should be written to the debug +log. Possible values: on/off. Default is on. Does not affect operation if debugging is +disabled.

+

DebugPrintModuleList

+

Specifies whether or not the module list should be written to the debug +log. Possible values: on/off. Default is on. Does not affect operation if debugging is +disabled.

DebugPrintTemplateList

Specifies whether or not the template list should be written to the debug -log. Possible values: on/off. Does not affect operation if debugging is +log. Possible values: on/off. Default is on. Does not affect operation if debugging is disabled.

DirCreateMode

This is the same as $FileCreateMode, but for directories automatically @@ -122,6 +130,18 @@ setting does not affect the owner of directories already existing. The parameter is a user name, for which the userid is obtained by rsyslogd on startup and on HUPing. Interim changes to the user mapping are not detected.

$DirOwner loguser

+

Include

+

This directive allows to include other files into the main configuration +file. As soon as an include directive is found, the contents of the new file is +processed. Includes can be nested. Please note that from a logical point of view +the files are merged. Thus, if the include modifies some parameters (e.g. +$DynaFileChacheSize), these new parameters are in place for the "calling" +configuration file when the include is completed. To avoid any side effects, do +a $ResetConfigVariables after the $Include. It may also be a good idea to do a +$ResetConfigVariables right at the start of the include, so that the module +knows exactly what it does. Of course, one might specifically NOT do this to +inherit parameters from the main file. As always, use it as it best fits...

+

$Include /etc/some-included-file.conf

RepeatedMsgReduction

This directive specifies whether or not repeated messages should be reduced (this is the "Last line repeated n times" feature). If set to on, repeated messages are reduced. If set to off, every @@ -177,6 +197,9 @@ compliant to the value that is somewhat suggested by Internet-Draft syslog-protocol. The first non-whitespace character after the command is treated as prefix:

$EscapeControlCharactersOnReceive #  # as of syslog-protocol

+

IMPORTANT: do not use the ' character. This is reserved and will most +probably be used in the future as a character delimiter. For the same reason, +the syntax of this directive will probably change in furture releases.

EscapeControlCharactersOnReceive

This directive instructs rsyslogd to replace control characters during reception of the message. The intent is to provide a way to stop non-printable -- cgit v1.2.3