HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl log-target — Get or set the log target for the systemd manager. More information: <https://www.freedesktop.org/so

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandclilogsetsystemctl log-targetgettarget
linux

Problem

How to use the systemctl log-target command: Get or set the log target for the systemd manager. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#log-target%20%5BTARGET%5D>.

Solution

systemctl log-target — Get or set the log target for the systemd manager. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#log-target%20%5BTARGET%5D>.

Show the current log target of the systemd manager:
systemctl log-target


Set the manager's log target:
systemctl log-target {{journal-or-kmsg|journal|kmsg|console|syslog|null|auto}}

Code Snippets

Show the current log target of the systemd manager

systemctl log-target

Set the manager's log target

systemctl log-target {{journal-or-kmsg|journal|kmsg|console|syslog|null|auto}}

Context

tldr-pages: linux/systemctl log-target

Revisions (0)

No revisions yet.