Target Linux host · systemd journal/log context
journalctl
journalctl
Query systemd journal records by unit, boot, time, priority or structured field.
Primary lookup intent: troubleshoot. Use `journalctl` when the lookup goal is to query systemd journal records by unit, boot, time, priority or structured field. Tie the result to the same host, namespace, user identity and time window as the symptom.
Inspect the exact process namespace/credentials/cgroup and owning kernel subsystem, then test the resource from the original workload context. Repeat the original workload/request before closure.
Privilege User for permitted journal data; journal groups or root may be required for complete system logs.State impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
Expected-state cue for `journalctl`Records for the exact unit/boot/time window show expected lifecycle messages and no unexplained errors around the symptom. Capture the exact invocation, exit status, stdout/stderr, target identity and observation time.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Supports the state directly exposed by journalctl for the selected object and execution context.
Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.
Inspect the exact process namespace/credentials/cgroup and owning kernel subsystem, then test the resource from the original workload context. Repeat the original workload/request before closure.
Command guidance
Execution context
Target Linux host · systemd journal/log context
Use when
Primary lookup intent: troubleshoot. Use journalctl when the lookup goal is to query systemd journal records by unit, boot, time, priority or structured field. Tie the result to the same host, namespace, user identity and time window as the symptom.
Important fields
Expected-state cue for journalctl: Records for the exact unit/boot/time window show expected lifecycle messages and no unexplained errors around the symptom. Capture the exact invocation, exit status, stdout/stderr, target identity and observation time.
Common problems
Suspicious-output cue for journalctl: Errors, restarts, dependency failures, denials or gaps correlate with the incident, or retention/permissions hide the interval. Treat this as a troubleshooting signal, not automatic root cause.
Operational impact
READ-ONLY LOOKUP ROLE — journalctl is classified read-only for its canonical lookup role; options, redirection or downstream commands can still add impact. journalctl safety classification: read_only — read-only inspection when used in its documented lookup role.
Runtime cautions
Prerequisites for journalctl: Confirm host, boot, unit/process, time window, retention boundary and permissions needed to see the relevant records. Privilege boundary for journalctl: User for permitted journal data; journal groups or root may be required for complete system logs. Confirm distribution/tool version and effective namespace before relying on option-specific behavior.
Technical context
Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. journalctl is documented as an operational lookup primitive under Logging. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
Variants · known-good and broken output
Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.
Known-good interpretationKnown-good · Linux
COMMAND: journalctl
STATE: known-good
Key fields: exit/result successful; unit/process/device/mount/socket present in expected namespace; effective state=active/ready; errors not increasing.
RESULT: expected operational state is present for the tested object/context.Known-good
Known-good means the important fields agree with the intended object and the command is observing the correct context. A process/unit being active proves local lifecycle state, not that its socket, filesystem, DNS/network or application transaction works. This proves only the state exposed by this command; close with the adjacent dependency and original workload rather than treating a green-looking output as end-to-end proof.
Supports the state directly exposed by journalctl for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Inspect the exact process namespace/credentials/cgroup and owning kernel subsystem, then test the resource from the original workload context. Repeat the original workload/request before closure.
Transitional interpretationTransitional · Linux
COMMAND: journalctl
STATE: transitional
Key fields: activating/reloading/recovering; child process/job still running; retries/backoff or udev/device discovery in progress.
RESULT: the object is negotiating, converging, applying, rebuilding, retrying or otherwise not yet terminal.Transitional
Transitional output is not automatically broken. systemd, package, filesystem and device operations can be asynchronous; inspect owning PID/job/device event and progress rather than repeating the command blindly. Preserve timers, counters, sequence/task identifiers and whether progress changes between samples. If progress stops past the expected operating envelope, branch to the dependency that owns the transition instead of repeatedly restarting the whole stack.
Supports the state directly exposed by journalctl for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Inspect the exact process namespace/credentials/cgroup and owning kernel subsystem, then test the resource from the original workload context. Repeat the original workload/request before closure.
Broken interpretationBroken · Linux
COMMAND: journalctl
STATE: broken
Key fields: failed/inactive/not-found/permission-denied; expected file/device/socket absent; dependency or kernel error present.
RESULT: expected state is absent, failed, denied, unresolved or inconsistent for the tested object/context.Broken
Broken output localizes a candidate boundary. Separate process/service state from kernel/device/network/permission dependencies and preserve errno/journal evidence. It still does not establish root cause by itself; compare the same field with the adjacent control/data-plane or upstream/downstream dependency, then make the smallest controlled correction and repeat the original test.
Supports the state directly exposed by journalctl for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Inspect the exact process namespace/credentials/cgroup and owning kernel subsystem, then test the resource from the original workload context. Repeat the original workload/request before closure.