Pcornel
Automation · Logging & Observability

Job Logs

Cheat sheet · https://pcornel.dk/topic.php?topic=5962

Back to the Topic

Answer

Job Logs are the bounded telemetry record for one schedulable or executable automation job, tying its inputs, environment, attempts, steps, outputs and final result to a unique job identity and parent workflow or pipeline.

Remember

  • Job completed ≠ workflow completed.
  • Job green ≠ target healthy.
  • Retried job success ≠ first attempt irrelevant.
  • Aggregated job log ≠ per-attempt evidence preserved.

First checks

  • Job output per run (AWX/CI/Rundeck) — history
  • Retention policy — storage
  • Download/export of logs — investigation

Verify in this order

job run → output → stored

Where it usually breaks

Job logs prove the recorded execution of one job attempt; they do not prove downstream jobs, external side effects or workload acceptance unless separately observed.

Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path.

Job Logs observability proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Identity / scopeImmutable source plus run/job/attempt and exact target IDs are explicitFloating source, shared labels or ambiguous target scope make events hard to attribute
Telemetry pathStructured logs, metrics and traces are exported, timestamped, retained and correlatedConsole-only output, missing data or broken correlation silently creates blind spots
Effective outcomeJob status is paired with target read-back and workload/service acceptanceGreen execution state substitutes for effective target or service verification
Monitoring / closureRates, latency, freshness and alerts use explicit windows/objectives and tested recoveryUntested alerts, stale dashboards or one successful sample are treated as healthy system proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5962

Confirmation

Confirm action

Continue?