Use this when every automated change must be traceable.
Audit Trail · Change Management
An audit trail records who changed what, when, how and with which approval — commits, pipeline runs, job logs and tickets — so every automated change can be traced afterwards.
1. Audit trail links requests, approvals, code, runs and results.
2. Immutable.
3. Searchable by change ID.
4. Retained.
5. Supports compliance.
request → approval → commit → run → result (all linked)
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify the audit trail by reconstructing one completed change end to end Verify boundary
Select one completed change and expect the same change or run ID to connect request, approver, commit or configuration revision, execution target, start/end timestamps and verification result. Confirm the target-side state or event independently and compare it with the controller record. A complete controller audit log shows what the controller recorded, but it does not show every target applied the change unless target read-back or equivalent evidence is linked to the same run.
Step 2 Layered verification of an audit trail without proof inflation Verify boundary
Verify an Audit Trail by choosing one completed bounded change and tracing the same correlation identity through each system that participated. First confirm the request or desired revision exists and the actor identity is attributable. Next confirm the execution record names the same revision, target set and attempt. Then query the affected target independently and compare its effective state with the intended change. Finally, where the change has a service-level objective, repeat the original workload or health test and link that result to the same change window. Each layer closes a different boundary: request records intent, controller logs record orchestration, target read-back records effective local state, and the workload test records service behavior.
Negative verification is equally useful. Deliberately inspect an aborted or failed attempt and confirm the trail preserves the failure point instead of overwriting it with a later retry. If a retry succeeds, both attempts should remain visible. If the target changed but the controller lost its terminal event, record that mismatch rather than manufacturing a success status. If controller and target clocks differ, use IDs and revisions to correlate first and timestamps only to bound the search window.
Completion means the owner can reconstruct the selected change without guessing across unrelated logs. It does not mean the change was approved by a human, compliant with an external standard, or technically correct. Those claims require their own review/source/evidence processes. The Audit Trail Topic should therefore teach correlation and reconstruction, while the related Change Evidence Topic carries the broader evidence package.
Step 3 Failure signatures and first-boundary isolation for audit gaps Narrow the fault
Common Audit Trail failures have distinct signatures. Missing actor with a valid run ID points toward authentication delegation, service-account attribution or logging context. Actor and revision present but no target list points toward scope resolution not being persisted. Controller success with no target-side event/read-back points toward collection gaps or an execution/effective-state boundary and must not be interpreted as evidence that nothing happened. Multiple records with the same change ID and no attempt identity makes retries indistinguishable. Target-side activity with no matching change ID indicates correlation was lost or the activity originated outside the automation path. Chronology that appears impossible can be clock skew or queue delay rather than data corruption.
Troubleshoot by reconstructing one change, not by searching the entire log estate at once. Start from the strongest stable identifier available, usually change ID, run ID, commit SHA or target transaction ID. Walk request → scope → attempt → controller result → target read-back → workload check and mark the first absent or contradictory boundary. Preserve later evidence even when an earlier boundary is missing; that can show that the failure is in observability/correlation rather than execution itself.
Avoid “fixing” an audit gap by simply increasing log verbosity everywhere. First determine which required join field is missing and add the smallest structured field or retention change that restores reconstructability. For a single-owner reference site, the success criterion is fast trustworthy reconstruction with low maintenance overhead, not maximum log volume.
Step 4 Branch audit gaps at identity, correlation, retention and target evidence Narrow the fault
If an Audit Trail cannot explain a change, first verify the execution has a stable run or change ID. If the ID exists but the actor is missing, inspect authentication delegation or service-account attribution. If controller records are complete but target evidence is absent, check log collection and retention rather than assuming the change never occurred. If duplicate records exist, compare attempt and correlation IDs. Reconstruct one change from approval through target read-back and record the first missing ownership boundary.
Step 5 Common mistakes Narrow the fault
- Changes made with shared accounts.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Link commit, pipeline run, job log and ticket.
- Keep logs immutable.
- Keep them long enough.
- Audit log (who, what, when, approval) — trail
git log --grep <CHG-ID>— commits per change- Immutable storage — integrity
ReferenceWhy it matters1 section · depth on demand
A change audit trail binds actor, intent, revision, execution and evidence
Audit Trail quality depends on preserving who initiated a change, which approved revision was executed, which targets were in scope and what evidence closed the change. Controller logs, Git commits, tickets and target-side events are different records and can disagree. A timestamped log line without a stable change or run identifier is weak evidence because it cannot be joined reliably. Use one correlation ID across approval, execution and verification so the trail survives retries and partial failure.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
An audit trail for changes links every change to its request, approval, executed automation, results and verification, so anyone can later answer who changed what, when, why and with what outcome.
| Link | Source |
|---|---|
| Request and approval | ITSM change record |
| Code version | Git commit SHA/tag |
| Execution | Automation job ID and log |
| Result | Verification output |
Include the change ID in commit messages, job names and device configuration comments so systems can be correlated.
Audit Trail data model and correlation boundaries
An automation Audit Trail is a joinable record of who or what initiated a change, which intent or approved revision was selected, which execution attempt acted on which targets, and how that attempt was closed. The useful unit is not a loose collection of timestamped log lines; it is a correlated change/run identity that survives retries, partial failure and hand-offs between Git, a controller, a ticketing system and the target platform. Keep actor identity, delegated/service identity, change or run ID, desired revision, target scope, attempt number, start/end time, result and verification reference as distinct fields. They answer different questions and must not be collapsed into a generic “success” event.
For troubleshooting, separate control-plane record from target-side state. A controller can truthfully record that it dispatched revision R to target T while T rejected it, applied only part of it, or changed and later drifted. Likewise, a target event can show local activity without proving which approved request caused it unless correlation identity is preserved. Time is supporting context, not identity: clock skew, queue delay and retries make “same minute” a weak join rule. A strong trail therefore prefers stable IDs and exact revisions over timestamp proximity.
For a one-owner site such as Pcornel.dk, the practical goal is reconstructability rather than enterprise ceremony. Preserve enough fields that a later review can answer: what was intended, what actually ran, where it ran, which attempt succeeded or failed, and which independent read-back closed the change. Do not infer approval, human review or technical correctness merely because the trail is complete; those are separate truth boundaries.
ReferenceConfiguration & state1 section · depth on demand
Known-good audit-trail contract for a small automation workflow
A known-good Audit Trail contract can stay small and deterministic. Give every mutating run one stable change_id or run_id; record the desired revision or input fingerprint; record the resolved target identities before mutation; assign an attempt number to retries; and emit structured start, per-target result and terminal events that all carry the same correlation ID. At closure, attach or reference the independent target read-back and the original workload or service check when that check is applicable. Retention only needs to be long enough for the owner’s real troubleshooting and rollback window; there is no value in building enterprise-scale archival machinery solely because the schema can support it.
The minimum useful fields are: correlation ID, actor/service identity, requested revision, target set, attempt, action, result, timestamps, error boundary and verification reference. Secrets, passwords, tokens and unnecessary payload bodies should not be copied into the trail. If the controller delegates through a service account, preserve both the requesting identity and the execution identity rather than replacing one with the other. If a retry occurs, keep the same change ID but a new attempt ID so duplicate execution can be distinguished from one long-running attempt.
A practical known-good test is deliberately bounded: perform one reversible change against one non-critical target, confirm the trail can be reconstructed from request through execution to target read-back, then retry or replay in a controlled way and confirm attempts remain distinguishable. This is a configuration/operating pattern, not observed production evidence and not evidence that every historical change was correctly audited.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Change Management > Audit Trail. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Quick lookup tables
Audit Trail operational decision reference
Known-good boundaries, failure signatures and the next check for this Topic.
| Boundary | Known-good signal | Suspicious signal | What it proves | Next check |
|---|---|---|---|---|
| Request | Stable change/run ID + actor + desired revision | Timestamp only or missing actor | Intent was recorded | Resolve target scope |
| Scope | Explicit target identities | Dynamic scope not persisted | Which objects were intended | Execution attempt |
| Attempt | Attempt ID + same change ID | Retry overwrites prior result | Which execution ran | Controller result |
| Target | Independent read-back/event | Controller success only | Effective local state at read-back time | Original workload test |
| Closure | Linked workload/result where applicable | “Success” without downstream check | Closure of tested boundary | Preserve trail and review gaps |