Lab – Basic Log Analysis#
TH – เป้าหมาย#
- ผู้เรียนสามารถเปิดดู log พื้นฐาน
- สามารถค้นหา error หรือข้อความที่น่าสนใจใน log ได้
EN – Goals#
- Open and read basic logs
- Search for errors or interesting events in logs
TH – โจทย์ตัวอย่าง#
- ใช้
journalctl ดู log ล่าสุด - ใช้
grep ค้นหาคำว่า “error” หรือ “fail” ใน log หนึ่งไฟล์ - ให้ผู้เรียนอธิบายว่าข้อความที่พบอาจสื่อถึงปัญหาอะไร
EN – Tasks#
- Use
journalctl to view recent logs - Use
grep to find “error” or “fail” in a log file - Ask learners to interpret what the messages might indicate