Log paths determine what happens with the incoming log messages. Messages coming from the sources listed in the log statement and matching all the filters are sent to the listed destinations.
To define a log path, add a log statement to the syslog-ng configuration file using the following syntax:
log {
source(s1); source(s2); ...
optional_element(filter1|parser1|rewrite1); optional_element(filter2|parser2|rewrite2);...
destination(d1); destination(d2); ...
flags(flag1[, flag2...]);
};
![]() |
Warning |
|---|---|
Log statements are processed in the order they appear in the configuration file, thus the order of log paths may influence what happens to a message, especially when using filters and log flags. |
All matching log statements are processed by default, and the messages are sent to every matching destination by default. So a single log message might be sent to the same destination several times, provided the destination is listed in several log statements, and it can be also sent to several different destinations.
This default behavior can be changed using the flags()
parameter. Flags apply to individual log paths; they are not global options. The
following flags available in syslog-ng:
final: Do not send the messages processed by this log path to any further destination.
fallback: Process messages that were not processed by other log paths.
catchall: Process every message, regardless of its source or if it was already processed by other log paths.
flow-control: Stop reading messages from the source if the destination cannot accept them. See Section 2.13, “Managing incoming and outgoing messages with flow-control”.
![]() |
Warning |
|---|---|
The |
For details on the individual flags, see Section 8.3, “Log path flags”. The
effect and use of the flow-control flag is detailed in Section 2.13, “Managing incoming and outgoing messages with flow-control”.
© 2007-2010 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com