Bug 1029638 - systemd-journald truncates syslog messages at the first newline character
systemd-journald truncates syslog messages at the first newline character
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-11-12 14:24 EST by Andrew J. Schorr
Modified: 2013-12-14 22:28 EST (History)
9 users (show)

See Also:
Fixed In Version: systemd-204-18.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-12-14 22:28:23 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew J. Schorr 2013-11-12 14:24:50 EST
Description of problem:
If you log a syslog message that contains embedded newline characters, journald truncates it at the first newline character.  This became clear because the default snmptrapd logging formats include embedded newline characters.  Most of the message is discarded as a result.

Version-Release number of selected component (if applicable):

How reproducible:
Try running this:

bash-4.2$ logger 'this is
> a test message with some
> embedded newlines'

Then observe that only "this is" appears in the journalctl output, and in

In Fedora 14 with rsyslogd, one sees the full message in /var/log/messages:

Nov 12 14:17:14 ti119 schorr: [ID user.notice] this is#012a test message with some#012embedded newlines

Steps to Reproduce:
1. logger 'this is
> a test message with some
> embedded newlines'
2. journalctl -n

Actual results:
[root@ti124 test]# journalctl -n 100 | grep this
Nov 12 14:16:41 ti124 schorr[23125]: this is

Expected results:
The full message with escape sequences for the newline characters.

Additional info:
Comment 1 Michal Schmidt 2013-11-13 04:26:03 EST
Looks like an issue already fixed in upstream:
Comment 2 Fedora Update System 2013-12-08 22:37:58 EST
systemd-204-18.fc19 has been submitted as an update for Fedora 19.
Comment 3 Fedora Update System 2013-12-10 01:13:11 EST
Package systemd-204-18.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-204-18.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2013-12-14 22:28:23 EST
systemd-204-18.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.