Use journalctl to Catch Intermittent Linux Service Failures

Terminal showing real journalctl list-boots and disk-usage output across two Linux boots

A service can keep running while journald drops its messages; a start limit instead prevents systemd from starting it again. Separating those failures keeps you from changing restart policy to solve a logging problem. Use the boot, unit and failure window to establish which branch applies.

Check the service state and logging route

This documentation-based workflow starts with read-only inspection. Here, robot-bridge.service is an illustrative unit name: substitute your actual service and incident window, using an account authorized to read the relevant logs.

systemctl show robot-bridge.service --no-pager -p ActiveState -p SubState -p Result -p ExecMainCode -p ExecMainStatus -p NRestarts -p StandardOutput -p StandardError
systemctl cat robot-bridge.service --no-pager

Read the current state, result and exit details alongside historical messages. A healthy replacement process does not explain why its predecessor failed; NRestarts helps identify automatic restart activity.

Check where output goes. The systemd execution manual limits per-unit journal rate controls to messages processed by journald, excluding output written directly to files. A configured LogNamespace= requires the matching journalctl --namespace= view. Reader permissions, filters and the application’s own logging behavior can also explain gaps.

Separate refused starts from dropped messages

Start-rate limiting uses StartLimitIntervalSec= and StartLimitBurst= to count starts, including manual starts. Exceeding the limit can refuse further starts. These settings do not specify how many journal messages a running service may emit.

By contrast, journald’s rate limiter applies RateLimitIntervalSec= and RateLimitBurst= per service. Once the applicable burst is exceeded, further messages in that interval are dropped, not queued for later replay. Look for journald’s dropped-message summary in the relevant boot and window, widening beyond the unit-only view if necessary. Empty output alone does not prove suppression.

Service-level LogRateLimitIntervalSec= and LogRateLimitBurst= override the corresponding journald settings. Available journal disk space also scales the effective burst, so a configured number is not a guaranteed observed threshold. Inspect unit directives and drop-ins with systemctl cat, then check the installed manuals and journald configuration for inherited values. Do not assume unit-file keys are identical to systemctl show property names, or that an absent property means zero.

Choose the boot, window and invocation

SUSE’s SLES 16.1 journal guide describes boot selection and time filtering. List accessible boots before narrowing to the incident:

journalctl --list-boots --no-pager
journalctl --disk-usage --no-pager
journalctl -b -1 -u robot-bridge.service --since "2026-09-10 14:20:00" --until "2026-09-10 14:30:00" -o short-full --no-pager

For the ordinary host journal, -b -1 selects the previous available boot; use -b BOOT_ID from the list for an explicit identity. Replace the sample dates with the actual incident window. No earlier boot in this view does not establish a storage mode or prove prior logs never existed: permissions, retention and selected journal scope matter.

The linked systemd manuals describe the 257.13 branch, not every installed distribution. Invocation selection arrived in systemd 257: first list invocations with journalctl -b -1 -u robot-bridge.service --list-invocations --no-pager. To read messages from the invocation before the latest within that boot, run a separate query: journalctl -b -1 -u robot-bridge.service --invocation=-1 -o short-full --no-pager, without --list-invocations. Replace --invocation=-1 with -I to read the latest invocation in the selected boot. On older versions, retain boot, unit and time-window filtering. The featured screenshot shows systemd 255 boot and disk-usage output, not these newer invocation options.

Preserve what remains before changing policy

Check effective storage configuration and distribution setup first. Storage=volatile keeps data under /run/log/journal; it disappears at host reboot, not an ordinary service restart. persistent prefers /var/log/journal, with runtime fallback during early boot or when disk storage is unwritable. auto depends on that directory’s existence; creating it does not override explicit volatile.

--disk-usage includes active and archived journals; vacuuming removes archived files only. Preserve relevant records rather than vacuuming, clearing failed state, disabling either limiter or repeatedly restarting as the default diagnostic step.

Keep the service timeline separate from NVMe power-loss and media-error evidence. Controller counters can add storage context, but they do not diagnose journald drops or prove which files were corrupted.

About TVG Editorial Team

TVG Report editorial coverage for robotics, AI, maker hardware, automation, and STEM technology.

View all posts by TVG Editorial Team →

Leave a Reply

Your email address will not be published. Required fields are marked *