template and rewrite: Format, modify, and manipulate log messages
Reformat messages with templates and macros, change message content with rewrite rules, and look up the supported regular expression types.
FilterX or classic filters, parsers, and rewrite rules?
FilterX replaces filters, parsers, and rewrite rules with a single typed language that can also handle nested JSON and other complex data. You don’t have to migrate: the classic blocks keep working, and you can use both in the same log path. To convert your existing configuration, see Update filters to FilterX.
This chapter explains the methods that you can use to customize, reformat, and modify log messages using AxoSyslog.
-
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.
-
Modify 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 AxoSyslog objects like filters and rewrite rules.
Last modified October 1, 2026: Move filterx chapter higher and link it from classical pages (4a7e94c3)