Structuring macros, metadata, and other value-pairs
Available in syslog-ng OSE 3.3 and later. The syslog-ng OSE application allows you to select and construct name-value pairs from any information already available about the log message, or extracted from the message itself.
You can directly use this structured information, for example, in the following places:
- amqp() destination
- format-welf() template function
- mongodb() destination
- stomp() destination destination
- or in other destinations using the format-json() template function.
When using value-pairs, there are three ways to specify which information (that is, macros or other name-value pairs) to include in the selection.
-
Select groups of macros using the scope() parameter, and optionally remove certain macros from the group using the exclude() parameter.
-
Define new name-value pairs to include using the pair() parameter.
These parameters are detailed in value-pairs() chapter.