Module 65: Server Management

Lesson 4 of 5 · 15–25 minutes

Logs

🏠The everyday picture

A building's security office keeps recordings from every camera, labelled by time and place, so when something goes wrong, they can find exactly what happened.

📘What it really is

🖱️Try it

Use journalctl -u crm-api -f while making requests to your app. Find your restart from Lesson 3 in the logs. Look at /var/log/auth.log for your SSH logins (and any failed attempts). Check how much space journald uses, and set a limit (SystemMaxUse=200M in /etc/systemd/journald.conf).

✅Quick check

How do you follow one service's logs live?

Show the answer

journalctl -u servicename -f.

Why rotate logs?

Show the answer

Without rotation, logs grow until they fill the disk.

← PreviousRunning your app with systemd
ProLearners Assist