файл конфигурации rsyslogd (8) (rsyslogd(8) configuration file)
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.