From e9f01ea80dfd124b07d6a499607ac73ef3ecafc8 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 28 Jan 2013 15:04:35 +0100 Subject: doc: some improvements and more cleanup --- doc/rsyslog_conf_basic_structure.html | 99 ++++++++++++++++++++++++++++------- 1 file changed, 79 insertions(+), 20 deletions(-) (limited to 'doc/rsyslog_conf_basic_structure.html') diff --git a/doc/rsyslog_conf_basic_structure.html b/doc/rsyslog_conf_basic_structure.html index 4ce78de0..fad1b110 100644 --- a/doc/rsyslog_conf_basic_structure.html +++ b/doc/rsyslog_conf_basic_structure.html @@ -1,33 +1,92 @@ - Basic Structure - rsyslog.conf +

Basic rsyslog.conf Structure

This is a part of the rsyslog.conf documentation.

Back to rsyslog.conf manual -

Basic Structure

-

Rsyslog supports standard sysklogd's configuration file format -and extends it. So in general, you can take a "normal" syslog.conf and -use it together with rsyslogd. It will understand everything. However, -to use most of rsyslogd's unique features, you need to add extended -configuration directives.

-

Rsyslogd supports the classical, selector-based rule lines. -They are still at the heart of it and all actions are initiated via -rule lines. A rule lines is any line not starting with a $ or the -comment sign (#). Lines starting with $ carry rsyslog-specific -directives.

-

Every rule line consists of two fields, a selector field and -an action field. These two fields are separated by one or more spaces -or tabs. The selector field specifies a pattern of facilities and -priorities belonging to the specified action.
-
-Lines starting with a hash mark ("#'') and empty lines are ignored. -

+

Rsyslog supports three different types of configuration statements +concurrently: +

+

The rsyslog.conf files consists of statements. For old style (sysklogd & legacy +rsyslog), lines do matter. For new style (RainerScript) line spacing is irrelevant. +Most importantly, this means with new style actions and all other objects can split +across lines as users want to. +

Comments

+

There are two types of comments: +

+ +

Processing Order

+

Directives are processed from the top of rsyslog.conf to the bottom. Sequence +matters. For example, if you stop processing of a message, obviously all statements +after the stop statement are never evaluated. + +

Flow Control Statements

+ + +

Data Manipulation Statements

+ + +

Inputs

+

Every input requires an input module to be loaded and a listener defined for it. +Full details can be found inside the rsyslog +modules documentation. Once loaded, inputs are defined via the +input() object. + +

Outputs

+

Outputs are also called "actions". A small set of actions is pre-loaded (like +the output file writer, which is used in almost every rsyslog.conf), others must +be loaded just like inputs. +

An action is invoked via the action(type="type" ...) object. Type is +mandatory and must contain the name of the plugin to be called (e.g. "omfile" or +"ommongodb"). Other paramters may be present. Their type and use depends on +the output plugin in question. + +

Rulesets and Rules

+

Rulesets and rules form the basis of rsyslog processing. In short, a rule +is a way how rsyslog shall process a specific message. Usually, there is a type +of filter (if-statement) in front of the rule. Complex nesting of rules is possible, +much like in a programming language. +

Rulesets are containers for rules. A single ruleset can contain many rules. In +the programming language analogy, one may think of a ruleset like being a program. +A ruleset can be "bound" (assigned) to a specific input. In the analogy, this means that when +a message comes in via that input, the "program" (ruleset) bound to it will be executed +(but not any other!). +

There is detail documentation available for +rsyslog rulesets.

[manual index] [rsyslog.conf] [rsyslog site]

This documentation is part of the rsyslog project.
-Copyright © 2008-2010 by Rainer Gerhards and +Copyright © 2008-2013 by Rainer Gerhards and Adiscon. Released under the GNU GPL version 3 or higher.

-- cgit v1.2.3