Difference between revisions of "Journalctl"
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
==See also== | ==See also== | ||
− | * | + | * {{systemd}} |
* <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>/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> | * <code>[[systemctl]]</code> |
Revision as of 06:02, 12 December 2019
Journalctl command allows to query the contents of the systemd journal/logs.
Configuration
/etc/systemd/journald.conf
Basic Commands
journalctl
[1] orjournalctl --no-pager
journalctl -r
(reverse order)- journalctl -k : Show only kernel messages
journalctl -f
(follow)journalctl -u service-name.service
journalctl -u libvirtd
journalctl --verify
- Disk Usage/Logging:
/journalctl --disk-usage/
journalctl --vacuum-size=200M
[2]- --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
journalctl --list-boots
. See also:last (command)
journalctl -xb
-x --catalog
Includes explanations in log lines from message catalgog-b
show message from current boot. if [ID] is provided will show messages from that specific boot.
See also
- Systemd:
systemctl
,systemd-journald
,journalctl
systemd-cat
,systemd-logind
,systemd-networkd
:networkctl
,systemd-timesyncd
,systemd-resolved
,systemd-udevd
[3],Systemd-logind: loginctl
,hostnamectl
,udevadm
,systemd-run
,portablectl
,systemd-nspawn
, systemd resource management, Timer (systemd), systemd logs,/etc/systemd/
, systemd services,systemd-mount
,/run/systemd/
,.service
,/usr/lib/systemd/
,/usr/lib/systemd/system/
,/usr/lib/systemd/system/systemd-resolved.service
,/lib/systemd/
, machinectl, systemd-oomd, systemd-analyze /etc/inittab
[4] andrespawn
option[5]systemctl
- launchd init and operating system service management daemon for MacOS
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: https://en.wikiversity.org/wiki/Linux_Administration/System_Services/System_Logging/Journalctl
Advertising: