# 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 AxoSyslog.

  * [Customize message format using macros and templates](../docs/axosyslog-core/chapter-manipulating-messages/customizing-message-format/index.md) 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](../docs/axosyslog-core/chapter-manipulating-messages/modifying-messages/index.md) describes how to use rewrite rules to search and replace certain parts of the message content.

  * [Regular expressions](../docs/axosyslog-core/chapter-manipulating-messages/regular-expressions/index.md) lists the different types of regular expressions that can be used in various AxoSyslog objects like filters and rewrite rules.




* * *

[Customize message format using macros and templates](../docs/axosyslog-core/chapter-manipulating-messages/customizing-message-format/index.md)

[Modify messages using rewrite rules](../docs/axosyslog-core/chapter-manipulating-messages/modifying-messages/index.md)

[Regular expressions](../docs/axosyslog-core/chapter-manipulating-messages/regular-expressions/index.md)

Last modified June 27, 2023: [Update paths to follow-up moving the files (6585a5b1)](<https://github.com/axoflow/axosyslog-core-docs/commit/6585a5b156244e39bb831bf4e8289529f30dea0f>)