template and rewrite: Format, modify, and manipulate log messages
This chapter explains the methods that you can use to customize, reformat, and modify log messages using syslog-ng Open Source Edition.
-
Customize message format using macros and templates explains how to use templates and macros to change the format of log messages, or the names of logfiles and database tables.
-
Modifying messages using rewrite rules describes how to use rewrite rules to search and replace certain parts of the message content.
-
Regular expressions lists the different types of regular expressions that can be used in various syslog-ng OSE objects like filters and rewrite rules.