Hands-on Lab·LPIC-1
Logging, priorities and rotation
Objective 108.2 covers system logging, and on a current machine that means two systems running side by side - the journal and rsyslog. This guide shows how to narrow the journal to something readable, explains the eight syslog priorities every logging question depends on, and runs logrotate in dry-run mode so you can see its decisions without making any.
102: Essential System Services Guide 19 of 33 Beginner
- OSUbuntu 26.04 LTS
- Kernel7.0.0-30-generic
- systemd259
- TimeAbout 19 min
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LPIC1-A01 | 192.168.0.76 | Ubuntu 26.04 LTS | Debian-family host - dpkg and apt, which objective 102.4 names | 2 Core | 4 GB | 50 GB |
This guide includes
Use this because a current machine runs two logging systems at once. This matters because the eight priorities are numbered 0 to 7, and those numbers are what the questions use.
- finding both logging systems running side by side
- narrowing the journal with three filters that compose
- learning the eight priorities, by number
- testing rotation without rotating anything
- reaching a negative result about the MTA, and finding it is the right answer
Before you start
- time-synchronisation-and-the-system-clock
-
Two logging systems, both running
-
Narrowing it to something you can read
-
The eight priorities every logging question uses
-
Rotation, without rotating anything
-
The mail transfer agent that is not there