Tag¶
Assigns a tag to messages read from the file; include a colon if desired.
This parameter applies to imfile: Text File Input Module.
- Name:
Tag
- Scope:
input
- Type:
string (see Rsyslog Parameter String Constants)
- Default:
none
- Required?:
yes
- Introduced:
at least 5.x, possibly earlier
Description¶
The tag to be assigned to messages read from this file. If a colon should
follow the tag, include it in the value, for example
Tag="myTag:"
.
Input usage¶
input(type="imfile" Tag="app:")
Legacy names (for reference)¶
Historic names/directives for compatibility. Do not use in new configs.
$InputFileTag
— maps to Tag (status: legacy)
See also¶
See also imfile: Text File Input 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.