journald handler doesn't output user identity to metadata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.log |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Even though the user_identity is set in the log message, the 'project_name', 'project_id', 'user_name' and 'user_id' are not set in the journald metadata as advertised by the handler; only the request_id is set. This is a sample record output:
Fri 2017-09-22 11:26:14.506314 UTC [s=bf4abb74b860
CODE_
CODE_LINE=222
CODE_
THREAD_
PROCESS_
SYSLOG_
PRIORITY=6
LOGGER_
LOGGER_
_TRANSPORT=
_UID=42425
_GID=42425
_COMM=httpd
_EXE=
_CMDLINE=
_CAP_
_SYSTEMD_
_SYSTEMD_
_SYSTEMD_
_SELINUX_
_BOOT_
_MACHINE_
_HOSTNAME=
_PID=398867
MESSAGE=
REQUEST_
_SOURCE_
It would be great if that data would be set in the metadata, as well as the user and project domains.
I'm not really familiar with journald. Are there fields built into its structure for that sort of info? Or should we add it to another field, like the message?