LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-service-log-target

Get or set per-service log destination

TLDR

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

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

Copied to clipboard
Kai