Prompt
Do I need audit logs for infrastructure changes?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
Yes—if you manage real infrastructure, you generally should have audit logs for infrastructure changes.
Why they matter:
- Accountability: Shows who changed what, when, and from where.
- Troubleshooting: Helps explain outages, misconfigurations, or unexpected behavior.
- Security: Detects unauthorized or risky changes.
- Compliance: Often required for SOC 2, ISO 27001, HIPAA, PCI DSS, etc.
- Recovery: Makes it easier to reconstruct events after an incident.
What to log:
- User/service identity
- Action performed
- Resource changed
- Before/after values if feasible
- Timestamp
- Source IP / session / request ID
- Success/failure result
Best practices:
- Make logs immutable or tamper-resistant
- Centralize them in a separate logging system
- Restrict access to logs
- Set retention based on compliance and operational needs
- Alert on high-risk changes
- Prefer infrastructure-as-code so changes are also tracked in version control
You might not need full audit logging for every tiny ephemeral environment, but for production and anything security-sensitive, the answer is effectively yes.
If you want, I can also give you:
- a minimum audit log checklist, or
- a sample policy for infrastructure change logging.