Difference between revisions of "Linux Administration/System Services/System Logging/Journalctl"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Journalctl command allows to query the contents of the systemd journal/logs. == Configuration == * <code>/etc/systemd/journald.conf</code> == Basic Commands == * <co...")
 
(Redirected page to Journalctl)
Tag: New redirect
 
Line 1: Line 1:
Journalctl command allows to query the contents of the [[systemd]] journal/[[logs]].
+
#redirect [[journalctl]]
 
 
== Configuration ==
 
* <code>/etc/systemd/journald.conf</code>
 
 
 
== Basic Commands ==
 
* <code>journalctl</code><ref>https://www.freedesktop.org/software/systemd/man/journalctl.html</ref> or <code>journalctl --no-pager</code>
 
* <code>journalctl -r</code> (reverse order)
 
* journalctl -k : Show only [[kernel]] messages
 
* <code>journalctl -f</code> (follow)
 
* <code>journalctl -u service-name.service</code>
 
:<code>journalctl -u [[kVM/libvirt|libvirtd]]</code>
 
* <code>journalctl --verify</code>
 
* Disk Usage/Logging: <code>[[/journalctl --disk-usage/]]</code>
 
* <code>journalctl --vacuum-size=200M</code><ref>https://askubuntu.com/a/1012913</ref>
 
**--vacuum-size=BYTES  Reduce disk usage below specified size
 
**--vacuum-files=INT    Leave only the specified number of journal files
 
**--vacuum-time=TIME    Remove journal files older than specified time
 
* <code>journalctl --list-boots</code>. See also: <code>last (command)</code>
 
 
 
==See also==
 
* [[systemd]] and related daemons: <code>systemd</code>, <code>systemd-journald</code>, <code>systemd-logind</code>, <code>systemd-networkd</code> ([[systemd/networkctl|networkctl]]), <code>systemd-timesyncd</code>, <code>systemd-resolved</code> and <code>systemd-udevd</code><ref>https://wiki.ubuntu.com/DebuggingSystemd</ref>
 
* <code>/etc/[[inittab]]</code><ref>https://linux.die.net/man/5/inittab</ref> and <code>respawn</code> option<ref>https://superuser.com/questions/507576/how-to-automatically-restart-a-linux-background-process-if-it-fails</ref>
 
* <code>[[systemctl]]</code>
 
* [[launchd]] init and operating system service management daemon for [[MacOS]]  
 
 
 
 
 
{{CC license}}
 
Source: https://en.wikiversity.org/wiki/Linux_Administration/System_Services/System_Logging/Journalctl
 

Latest revision as of 06:32, 10 December 2019

Redirect to:

Advertising: