< Linux Administration < System Services < System Logging
Journalctl command allows to query the contents of the systemd journal/logs.
Configuration
/etc/systemd/journald.conf
Basic Commands
journalctl[1] orjournalctl --no-pagerjournalctl -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)
See also
- systemd and related daemons:
systemd,systemd-journald,systemd-logind,systemd-networkd(networkctl),systemd-timesyncd,systemd-resolvedandsystemd-udevd[3] /etc/inittab[4] andrespawnoption[5]systemctl- launchd init and operating system service management daemon for MacOS
This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.