[hostlogger] Trailing LF is dropped from host logger to rsyslog
Heyi Guo
guoheyi at linux.alibaba.com
Fri Feb 25 19:07:00 AEDT 2022
Hi all,
We are using hostlogger in stream mode and forwarding the serial port
data to rsyslog. rsyslog template is as below:
$EscapeControlCharactersOnReceive off
template(name="hostlog" type="string"
string="%rawmsg%"
)
However it seems the trailing LF "\n" of each socket transfer will be
dropped when saving the messages to file, causing multiple lines joined
together and hard to read.
Is there anything wrong in our configuration?
Thanks,
Heyi
More information about the openbmc
mailing list