# Logging and monitoring guardrails protect the audit trail, and block the teams that tune it

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

8 guardrails in the library address logging and monitoring: 4 AWS, 2 Azure, 2 Google Cloud. The first in the list, "Deny enabling and disabling AWS Config", denies stopping or deleting AWS Config recorders, delivery channels, rules and aggregators, and putting new configuration, unless the caller is the privileged role.

Guardrails in this class protect the records that show what happened: AWS Config, CloudTrail, GuardDuty and VPC flow logs, plus diagnostic settings in Azure. The library holds 8. They break tuning. Denying changes to AWS Config means teams cannot add their own Config rules or recorders outside the privileged role. The GuardDuty entry lists guardduty:ArchiveFindings and guardduty:CreateFilter, so day-to-day findings handling also needs the privileged role. The flow log entry has no exception condition, so cleanup automation is denied too. Azure's deployIfNotExists is not a blocking effect: matching resources are marked noncompliant until a remediation task runs.

| Guardrail | Cloud | Mechanism | Risk class | Tested first |
| --- | --- | --- | --- | --- |
| [Deny enabling and disabling AWS Config](/guardrails/aws-scp-deny-config-changes/) | AWS | [Service control policies (SCPs)](/mechanisms/scp/) | Logging and monitoring | documented |
| [Deny modifications to specific CloudTrail trails](/guardrails/aws-scp-deny-cloudtrail-trail-changes/) | AWS | [Service control policies (SCPs)](/mechanisms/scp/) | Logging and monitoring | documented |
| [Deny disabling or modifying Amazon GuardDuty](/guardrails/aws-scp-deny-guardduty-changes/) | AWS | [Service control policies (SCPs)](/mechanisms/scp/) | Logging and monitoring | documented |
| [Deny deleting VPC flow logs](/guardrails/aws-scp-deny-vpc-flow-log-deletion/) | AWS | [Service control policies (SCPs)](/mechanisms/scp/) | Logging and monitoring | documented |
| [Deploy diagnostic settings for Key Vault to Event Hub](/guardrails/azure-policy-keyvault-diagnostic-logs/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Logging and monitoring | documented |
| [Application Insights components should block non-Entra ingestion](/guardrails/azure-policy-appinsights-entra-ingestion/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Logging and monitoring | documented |
| [Require predefined policies for VPC flow logs](/guardrails/gcp-orgpolicy-require-vpc-flow-logs/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Logging and monitoring | none found |
| [Disable Audit Logging exemption](/guardrails/gcp-orgpolicy-disable-audit-logging-exemption/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Logging and monitoring | none found |

"Tested first" says whether the provider documents a way to see the guardrail's effect before enforcing it. Read 10 Nov 2026.

## What these guardrails break

- **Deny enabling and disabling AWS Config** (AWS): Teams cannot add or change their own Config rules or recorders outside the privileged role; the README notes AWS Control Tower already applies a similar default control.
- **Deny modifications to specific CloudTrail trails** (AWS): The resource is a placeholder trail name that must be replaced; the README notes an organization trail already prevents member account users from altering it.
- **Deny disabling or modifying Amazon GuardDuty** (AWS): The action list includes guardduty:ArchiveFindings and guardduty:CreateFilter, so day-to-day findings handling also needs the privileged role.
- **Deny deleting VPC flow logs** (AWS): The policy has no exception condition, so it applies to every IAM user, role and the root user in the affected member accounts, including cleanup automation that deletes flow logs.
- **Deploy diagnostic settings for Key Vault to Event Hub** (Azure): DeployIfNotExists is not a blocking effect: matching resources are marked non-compliant and no action is taken on them until a remediation task runs.
- **Application Insights components should block non-Entra ingestion** (Azure): Existing components that accept unauthenticated ingestion are marked non-compliant but not changed.
- **Require predefined policies for VPC flow logs** (Google Cloud): Google documents that subnetworks in scope must have flow logs enabled with the required minimum sampling rate, where by default any settings are allowed.
- **Disable Audit Logging exemption** (Google Cloud): Google documents that it does not affect audit-logging exemptions that existed before the constraint was enforced.

**Where Act is behind.** Act writes guardrails in the provider's own mechanisms and hands them to your pipeline to enforce, so it is bounded by what those mechanisms can express in each cloud. It does not apply them itself, the boundary types it names are AWS's and Azure's, and exception and waiver handling after a guardrail ships was described as roadmap.

## Related pages

- [Encryption and keys: 13 preventive guardrails across three clouds](/risk/encryption-and-keys/)
- [Network perimeter: 7 preventive guardrails across three clouds](/risk/network-perimeter/)
- [Region and residency: 5 preventive guardrails across three clouds](/risk/region-and-residency/)

## Sources

- Deny enabling and disabling AWS Config: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Deny-changes-to-security-services/Deny-enabling-and-disabling-AWS-Config.json (read 10 Nov 2026)
- Deny modifications to specific CloudTrail trails: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Deny-changes-to-security-services/Deny-modifications-to-specific-CloudTrail-trails.json (read 10 Nov 2026)
- Deny disabling or modifying Amazon GuardDuty: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Deny-changes-to-security-services/Deny-users-from-disabling-Amazon-GuardDuty-or-modifying-its-configuration.json (read 10 Nov 2026)
- Deny deleting VPC flow logs: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Protect-cloud-platform-resource/Deny-users-from-deleting-Amazon-VPC-flow-logs.json (read 10 Nov 2026)
- Deploy diagnostic settings for Key Vault to Event Hub: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Key%20Vault/DiagnosticLog_DINE.json (read 10 Nov 2026)
- Application Insights components should block non-Entra ingestion: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponents_DisableLocalAuth_Deny.json (read 10 Nov 2026)
- Require predefined policies for VPC flow logs: https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints (read 10 Nov 2026)
- Disable Audit Logging exemption: https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/risk/logging-and-monitoring/
