Audit Logging
Cheat sheet · https://pcornel.dk/topic.php?topic=5910
Answer
Audit Logging records security-relevant automation events with enough identity, source, policy, target and outcome context to reconstruct who or what caused a privileged change without recording secret values.
Remember
- Job log ≠ security audit log.
- Audit event exists ≠ audit event complete.
- Central log storage ≠ tamper resistance guaranteed.
- No suspicious event found ≠ suspicious action did not occur.
First checks
- Audit log of every automation run (who, what, where, result) — accountability
- Logs forwarded to SIEM — monitoring
- Tamper-resistant storage — integrity
Verify in this order
run → audit record → SIEM
Where it usually breaks
Audit logging proves visibility only for instrumented events that are generated, transported, retained and queried correctly; absence of a record is not proof an action did not happen.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5910