journalctl: add with-unit mode

System Internals / systemd - Luca Boccassi [debian.org] - 25 May 2018 12:45 EDT

When dealing with a large number of template instances, for example when launching daemons per VRF, it is hard for operators to correlate log lines to arguments. Add a new with-unit mode which, if available, prefixes unit and user unit names when displaying its log messages instead of the syslog identifier. It will also use the full timestamp with timezones, like the short-full mode.

49805b3d8 journalctl: add with-unit mode
man/journalctl.xml | 12 ++++++++++++
shell-completion/bash/journalctl | 2 +-
shell-completion/zsh/_sd_outputmodes | 2 +-
src/journal/journalctl.c | 2 +-
src/shared/logs-show.c | 25 ++++++++++++++++++++-----
src/shared/output-mode.c | 3 ++-
src/shared/output-mode.h | 1 +
7 files changed, 38 insertions(+), 9 deletions(-)

Upstream: github.com


  • Share