diff --git a/CHANGELOG b/CHANGELOG index 8d8fda7..2300339 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- [RSYSLOG_TEMPLATES] New raw_message_nolf template to send logs without newline added ## [2.1.18] - 2025-10-24 diff --git a/usr/local/etc/rsyslog.d/05-tpl-00-generic.conf b/usr/local/etc/rsyslog.d/05-tpl-00-generic.conf index 4978b60..c89bf0b 100644 --- a/usr/local/etc/rsyslog.d/05-tpl-00-generic.conf +++ b/usr/local/etc/rsyslog.d/05-tpl-00-generic.conf @@ -1,4 +1,5 @@ template(name="raw_message" type="string" string="%rawmsg%\n") +template(name="raw_message_nolf" type="string" string="%rawmsg%") template(name="recovery" type="string" string="%msg%\n") template(name="recoveryfile" type="string" string="/var/log/recovery/%SYSLOGTAG%-%timestamp:::date-year%.%timestamp:::date-month%.%timestamp:::date-day%-%timestamp:::date-hour%.log") template(name="date-rfc3339" type="string" string="%$!timestamp!year%-%$!timestamp!month%-%$!timestamp!day%T%$!timestamp!hour%:%$!timestamp!minute%:%$!timestamp!second%Z")