Join our Newsletter — 33% off our NHI Course

How do you enable logging for AWS WAF web ACLs?

Enable logging for AWS WAF web ACLs by turning on logging for the web ACL in AWS WAF and choosing a destination for the log records. Then confirm that log delivery is working and that the captured events include the requests, rule matches, and actions you need for investigation. Restrict access to the log destination and monitor for gaps in delivery.

How AWS WAF logging is wired and what it gives you

Logging for a web ACL is a delivery configuration, not a separate analysis feature. You enable it on the ACL, choose where the records land, and then use those records to reconstruct requests, matched rules, and actions taken by WAF. The main design question is whether the destination can absorb the volume, preserve the data, and remain tightly controlled.

Because AWS WAF can generate a high event rate on busy applications, the logging target should be treated as part of the security control path. If the destination is noisy, over-permissioned, or inconsistently available, you lose the very evidence you need for investigation and tuning. For a broader view of WAF operation, deployment trade-offs, and bypass considerations, see the Web Application Firewall Guide.

What to validate before you rely on the logs

Once logging is enabled, the practical test is not just whether records appear, but whether they are complete enough for incident work. Confirm that the stream includes the request details you expect, the terminating or matching rule context, and the final action so you can separate blocked traffic from allowed traffic during triage.

It also matters that the log destination is reachable and durable. If delivery fails intermittently, the gap is often discovered only after an incident when analysts need a clean timeline. In AWS environments, logging and monitoring usually sit alongside broader detection and retention controls, so it helps to align WAF logging with the same operational standards you use for other cloud telemetry. The AWS Security Guide is a useful companion for that wider control picture.

When the destination is S3, CloudWatch Logs, or Firehose, the exact storage pattern changes how quickly teams can search, archive, and forward events. The important point is to verify the end-to-end path, not just the toggle in the console.

How to operate WAF logging safely after enablement

After logging is turned on, treat the records as sensitive operational telemetry. They can reveal request paths, parameters, attacker probes, and application behavior that should not be broadly readable. Restrict access to the log destination, limit who can query or export the data, and review whether any downstream processors inherit broader access than intended.

Operationally, the most common mistake is assuming logging is finished once the setting is on. In practice, teams still need to watch for dropped deliveries, delayed ingestion, excessive cost from chatty rules, and log formats that are too sparse for investigation. If you are using the logs to tune false positives or investigate suspicious activity, make sure the retention period is long enough to support that work. The cloud logging and incident-response angle is also covered in the Cloud Security Guide.

Risk and Threat Considerations

WAF logs often become a second-order security asset: if they are exposed, attackers gain visibility into the application, and if they are missing, defenders lose evidence of probing, rule hits, and request patterns. The risk is highest when log access is broader than the application team or when delivery gaps go unnoticed until after suspicious traffic has already passed.

Failure mechanism: Misconfigured destination permissions, retention settings, or delivery integrations can expose log data to unauthorized readers or silently drop events during peak traffic or configuration changes.

Impact: Investigators may lose the timeline needed to confirm attack activity, rule tuning may be based on incomplete evidence, and sensitive request data may leak into places that were never meant to hold it.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
NIST CSF 2.0 DE.CM-01 — Networks and network services are monitored to find potentially adverse events WAF logs support continuous monitoring of web traffic and security events.
Recommendation — Monitor WAF telemetry for suspicious patterns and delivery gaps.
NIST SP 800-53 Rev 5 AU-2 — Event Logging Enabling WAF logs is an event logging control for security investigation.
AU-9 — Protection of Audit Information WAF logs must be protected from unauthorized access and tampering.
Recommendation — Define the WAF events that must be logged for investigations. Restrict access to WAF log storage and preserve log integrity.
CIS Controls v8 8 — Audit Log Management WAF logging and delivery verification are core audit-log management tasks.
Recommendation — Centralize and review WAF logs as part of audit log management.
ISO/IEC 27001:2022 A.8.15 — Logging WAF logging directly implements Annex A logging and monitoring expectations.
Recommendation — Enable logging and confirm the records are retained for review.

Practitioner Guidance

What to verify: Test the full path from web ACL to destination, then confirm you can retrieve recent events and distinguish allowed, blocked, and counted traffic. A successful configuration is one that produces usable evidence under normal load, not just a green status in the console.

Decision rule: If the destination cannot be tightly permissioned or reliably retained, fix that first and treat logging as incomplete until those controls are in place. If the log volume is too high for the chosen target, adjust retention, filtering, or downstream processing before the data becomes unusable.

Practitioner takeaway: The real measure of WAF logging is whether it preserves trustworthy evidence with controlled access, because incomplete or overexposed logs weaken both detection and investigation.