0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 2D
1:50–2:00
Debrief
0:00 – 0:10Recap · 10 min

Time is reliable — now what's written to the log files?

0:10 – 0:35Lecture · 25 min

The syslog standard, rsyslog architecture, the custom template, and centralised logging

Instructor note: the custom template is the step students forget most often — without it, logging still works, but without the facility/severity context that makes analysis efficient. Call it out explicitly before the lab starts.
0:35 – 1:50Lab 2D · 75 min

Lab 2D — Template and redirection on S1, then centralised logging from S2, plus rotation

Part 1 — Custom template and local redirection (30 min)

Part 2 — Centralised logging from S2, then rotation (45 min)

Snapshot reminder: a misconfigured rsyslog.conf can silently stop logging entirely. Take the snapshot before touching anything, and don't skip it under time pressure.
Optional take-home extension (on the handout): the second-facility redirect exercise (kern.* → NewLog.log), the full six-log-file research table (auth.log, syslog, kern.log, dpkg.log, dmesg, wtmp), and the omusrmsg live-terminal bonus that prints auth events directly to a watching session. All were part of the original two-day version.
1:50 – 2:00Debrief · 10 min

Learning outcomes — by end of Day 4, students can…

Name the eight syslog severity levelsList 0–7 with names and keywords
Add a custom log template and redirect a facilityInsert myDefault and route a facility to a new file
Configure centralised loggingEnable UDP reception bound to a specific interface and forward a client's logs with @loghost
Write a logrotate rule and schedule itUse daily/rotate/compress/sharedscripts/postrotate, driven by a crontab entry

What you need ready before class

Lab 2D handout printed Mini-Assessment 2 printed for tomorrow Snapshot capability confirmed in Hyper-V
←← Week 2 Overview ← Day 3 Lab 2D Handout Day 5 →