Template

Sets the template to be used for this action.

This parameter applies to omfile: File Output Module.

Name:

Template

Scope:

module, action

Type:

word

Default:

module=RSYSLOG_FileFormat; action=inherits module

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Sets the template to be used for this action.

When set on the module, the value becomes the default for actions.

Module usage

module(load="builtin:omfile" Template="...")

Action usage

action(type="omfile" Template="...")

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $ActionFileDefaultTemplate — maps to Template (status: legacy)

See also

See also omfile: File 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.