Difference between revisions of "Journalctl"
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...") |
(→Basic Commands: * <code>journalctl -xb</code>) |
||
Line 18: | Line 18: | ||
**--vacuum-time=TIME Remove journal files older than specified time | **--vacuum-time=TIME Remove journal files older than specified time | ||
* <code>journalctl --list-boots</code>. See also: <code>last (command)</code> | * <code>journalctl --list-boots</code>. See also: <code>last (command)</code> | ||
+ | * <code>journalctl -xb</code> | ||
==See also== | ==See also== |
Revision as of 06:33, 10 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
See also
- systemd and related daemons:
systemd
,systemd-journald
,systemd-logind
,systemd-networkd
(networkctl),systemd-timesyncd
,systemd-resolved
andsystemd-udevd
[3] /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: