Trailing white space is removed in /var/log/messages
Issue
Trailing white space is removed in /var/log/messages.
Steps to Reproduce:
1. Use the logger command with a trailing white space:
[root@localhost ~]# logger "TEST "
Actual results:
[root@localhost ~]# cat /var/log/debug.log
Debug line with all properties:
FROMHOST: 'localhost', fromhost-ip: '127.0.0.1', HOSTNAME: 'localhost', PRI: 13,
syslogtag 'root:', programname: 'root', APP-NAME: 'root', PROCID: '-', MSGID: '-',
TIMESTAMP: 'Jan 2 11:30:18', STRUCTURED-DATA: '-',
msg: 'TEST'
escaped msg: 'TEST'
inputname: imjournal rawmsg: 'TEST'
The trailing white space is removed as above.
Environment
- Red Hat Enterprise Linux 7
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
