Logs & Troubleshooting
journalctl # All logs (overwhelming!)journalctl -b # Logs from current bootjournalctl -b -1 # Logs from previous bootjournalctl -f # Follow logs in real-timejournalctl -u service_name # Logs for specific servicejournalctl -xe # Most recent logs with explanationsjournalctl --since "1 hour ago" # Time-based filteringjournalctl --since "2024-10-01" # Date-based filteringjournalctl -p err # Only errorsThink of journalctl as “journal central”.
Unfortunately this is where I find it most intimidating just because of sheer information it throws at you. Baby steps, baby steps…