Bug 55320

Summary: journal: no _SYSTEMD_UNIT field for _TRANSPORT=stdout messages
Product: systemd Reporter: Oleksii Shevchuk <public.avatar>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WORKSFORME QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Oleksii Shevchuk 2012-09-25 14:38:07 UTC
Journal should mark log records with _SYSTEMD_UNIT, if process assigned to unit or started in unit cgroup

// systemd latest
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-03-14 04:07:49 UTC
Works for me:

$ journalctl _TRANSPORT=stdout -o verbose|grep -E 'MESSAGE|_TRANSPORT|_UNIT'
...
	_TRANSPORT=stdout
	_SYSTEMD_UNIT=dbus.service
	MESSAGE=Failed to issue method call: Unit winbind.service is not loaded.
	_TRANSPORT=stdout
	_SYSTEMD_UNIT=bluetooth.service
	MESSAGE=bluetoothd[765]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.