// To display utc timestamp in logs
journalctl --utc
// Displaying Logs from the Current Boot
journalctl -b
// Listing boots
journalctl --list-boots
// Time window
journalctl --since "2015-01-10 17:15:00"
journalctl --since "2015-01-10" --until "2015-01-11 03:00"
journalctl --since yesterday
journalctl --since 09:00 --until "1 hour ago"
// Filtering by Message Interest
journalctl -u nginx.service
journalctl -u nginx.service --since today
journalctl -u nginx.service -u php-fpm.service --since today
// By Process, User, or Group ID
journalctl _PID=8088
id -u www-data
journalctl _UID=33 --since today
// More information
man systemd.journal-fields
# Check (this)[https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs] for futher information.
-
-
Save scottjbarr/1a4088e97d3c66caf497a5dfa266e659 to your computer and use it in GitHub Desktop.
Using JournalCtl to view system logs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment