tag

Assigns a tag to messages. This is useful for inputs like imudp or imtcp that do not provide a tag.

This parameter applies to mmtaghostname: message modification module.

Name:

tag

Scope:

input

Type:

string

Default:

none

Required?:

no

Introduced:

at least 7.0, possibly earlier

Description

The tag to be assigned to messages processed by this module. This is often used to route messages to different rulesets or output actions based on the tag. If you would like to see the colon after the tag, you need to include it when you assign a tag value, like so: tag="myTagValue:". If this parameter is not set, message tags are not modified.

Input usage

action(type="mmtaghostname"
       tag="front")

See also


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.