Template¶
Defines the template used to render records, either globally for the module or for a specific action.
This parameter applies to omlibdbi: Generic Database Output Module.
- Name:
Template
- Scope:
module, input
- Type:
word
- Default:
module=StdDBFmt; input=inherits module
- Required?:
no
- Introduced:
Not documented
Description¶
Set the default template that omlibdbi uses when writing to the database, then optionally override it per action.
If no template is provided at the action or module level, omlibdbi uses
the built-in StdDBFmt template.
Module usage¶
module(load="omlibdbi" template="dbTemplate")
Input usage¶
action(type="omlibdbi" driver="mysql" server="db.example.net" \
uid="dbwriter" pwd="sup3rSecret" db="syslog" \
template="structuredDb")
See also¶
See also omlibdbi: Generic Database Output Module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.