systemctl-service-log-target

Get or set per-service log destination

TLDR

Show service log target
$ systemctl service-log-target [service]
Set to console
$ systemctl service-log-target [service] console
Set to journal
$ systemctl service-log-target [service] journal
Set to syslog
$ systemctl service-log-target [service] syslog
Set to auto
$ systemctl service-log-target [service] auto
Disable logging
$ systemctl service-log-target [service] null

SYNOPSIS

systemctl service-log-target SERVICE [TARGET]

DESCRIPTION

systemctl service-log-target gets or sets where a service sends its log messages via D-Bus. This allows redirecting service logs at runtime without restarting.The service must support the standard D-Bus logging interface.

LOG TARGETS

console - Send logs to stderrjournal - Send logs to systemd-journaldsyslog - Send logs to /dev/logauto - Let systemd choosenull - Disable all log output

CAVEATS

Only works with D-Bus integrated services. Changes are temporary and reset on service restart. Not all services support this feature.

HISTORY

The service-log-target subcommand enables per-service log routing control for debugging and troubleshooting specific services.

SEE ALSO

systemctl-service-log-level(1), systemctl-log-target(1), journalctl(1)