addLF¶
Ensures each written record ends with an LF by appending one when the message is missing it.
This parameter applies to omfile: File Output Module.
- Name:
addLF
- Scope:
module, action
- Type:
boolean
- Default:
module=off; action=inherits module
- Required?:
no
- Introduced:
8.2410.0
Description¶
When enabled, the omfile action checks whether a rendered message already terminates with an LF (line feed) before writing it. If not, omfile appends an LF so that every record ends with one, regardless of the template that produced the message. The additional byte is added transparently even when compression or cryptographic providers are enabled.
When configured on the module, the setting becomes the default for all omfile
actions that do not set addLF
explicitly.
Module usage¶
module(load="builtin:omfile" addLF="on")
Action usage¶
action(type="omfile" file="/var/log/messages" addLF="on")
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.