Retention is an operational requirement
A restarted service can look healthy while the evidence explaining its failure has already disappeared. Journal retention should support the period during which operators discover and investigate incidents. It also needs a capacity budget, because retaining every message indefinitely is not a practical default on a finite server.
Distinguish local evidence from centralized retention. A local journal helps investigate a host, while a separate authorized log destination can support longer retention or a host-loss scenario. Neither arrangement automatically proves that messages are complete, confidential or recoverable. Those properties need explicit acceptance checks.
Setup: inspect storage and boot coverage
Record the installed systemd version, effective journald configuration and whether storage is persistent or volatile. Inspect journalctl --list-boots, journalctl --disk-usage and a bounded query for a known unit and time interval. The boot listing tells you which boot histories are available; it does not prove every expected message was recorded.
The journald configuration separates persistent and runtime storage limits. Review Storage=, relevant size and keep-free settings, retention time and rate limiting against the installed manual. A time-based retention setting is not a promise that all records survive for that duration when tighter space constraints require earlier removal.
View journalctl logs from the previous boot
Start by listing the boots still present in the journal. Then query the previous available boot, optionally narrowing the result to the affected service:
journalctl --list-boots
journalctl --boot=-1
journalctl --boot=-1 --unit=example.service --no-pager
Replace example.service with the actual unit. These commands read logs and do not change retention. Access depends on the host permissions and journal configuration. The -1 offset selects the boot before the latest boot found in the available journal; compare boot IDs and timestamps in --list-boots before assuming it is the incident boot. If previous entries are absent, they may not have been persisted or may have been removed under retention limits. Do not vacuum the journal while collecting evidence. See the journalctl manual.
Illustrative incident: the useful boot is missing
In an illustrative outage, a host restarts overnight and the next shift investigates hours later. The active application's logs look normal, but the failing boot is absent from the local journal. This is an invented teaching scenario, not a claim about a real production customer or a lost audit record.
Build a timeline using boot identity, UTC timestamps and any independent monitoring evidence. Ask whether the missing interval was never persisted, aged out under limits, or not collected because the host failed. Do not infer that an absence of local messages proves there was no application error.
Troubleshooting: identify the retention boundary
| Observation | Evidence to examine | Likely question |
|---|---|---|
| Only the current boot is available | Storage mode and journal directories | Was prior-boot persistence expected? |
| Older intervals disappear during bursts | Usage, keep-free limits and message volume | Which capacity rule shortened coverage? |
| Messages are suppressed | Rate-limit evidence and noisy sender | Is important evidence being crowded out? |
| Central logs have a different gap | Collector health and transport timeline | Did forwarding fail independently? |
Avoid collecting unrestricted logs into a public ticket. Journals can contain user identifiers, paths and application mistakes that expose sensitive configuration. Use a restricted evidence location, scoped queries and the incident team's retention policy. Redaction should preserve diagnostic meaning without publishing credentials.
Correct persistence and noisy sources
Agree the required investigation window, local capacity allowance and forwarding boundary. Apply a reviewed journald configuration change using procedures supported by the distribution. Address an excessively verbose application at its source rather than globally discarding the severity levels that incident responders depend on.
Journal rotation and vacuum operations have different effects, including the distinction between active and archived files. Preserve needed records before any approved cleanup. Deleting evidence to make the disk-usage chart green is not the same as resolving the event that generated the volume.
Verification, SLO and evidence handover
Generate a recognizable, non-sensitive test event and verify its unit, timestamp and destination. In a planned maintenance test, confirm the expected history across a reboot, then check forwarding separately. Capacity simulation belongs in a safe environment; do not deliberately fill a production root filesystem to test retention.
Define an internal objective for searchable incident evidence over the chosen operating window, with an alert when collection or capacity threatens coverage. Do not call this a contractual SLA unless the measurement and remedies are agreed. The SOP should identify log owners, evidence export, permitted cleanup, retention exceptions and escalation when records needed for an investigation are missing.
See Clouvenix observability monitoring for help defining a reviewed operational scope.
Technical reference
journald storage and retention settings, journalctl boot queries and maintenance. Reviewed 19 October 2026; select documentation matching the installed release.