Talk:Configuration Samples
From rsyslog wiki
Basic Conf Template
For some reason, the samples given are everything but what appears to be the basic format. Why is that? I find it rather confusing for the person just starting out.
The man page for rsyslog.conf states:
BASIC STRUCTURE
Lines starting with a hash mark ('#') and empty lines are ignored. Rsyslog.conf
should contain following sections (sorted by recommended order in file):
Global directives
Global directives set some global properties of whole rsyslog daemon, for
example size of main message queue ($MainMessageQueueSize), loading external
modules ($ModLoad) and so on. All global directives need to be specified on
a line by their own and must start with a dollar-sign. The complete list of
global directives can be found in html documentation in doc directory or
online on web pages.
Templates
Templates allow you to specify format of the logged message. They are also
used for dynamic file name generation. They have to be defined before they
are used in rules. For more info about templates see TEMPLATES section of
this manpage.
Output channels
Output channels provide an umbrella for any type of output that the user
might want. They have to be defined before they are used in rules. For more
info about output channels see OUTPUT CHANNELS section of this manpage.
Rules (selector + action)
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.
I'd like to find at least one example that displays this layout in the proper manner. Does anyone know how to do this? Thanks. - KitchM 03:23, 22 April 2010 (CEST)