Prompt
Fastly Next-Gen WAF is not giving us enough visibility into blocked traffic.
Latest observation
Understood — if Fastly Next-Gen WAF is blocking traffic but you’re not getting enough visibility, the most common issues are around logging configuration, signal enrichment, and where you’re looking for the data.
Here are the quickest ways to improve visibility:
1. Make sure security events are being exported
Check whether your WAF is sending security logs/events to a destination you can query, such as:
- Fastly logging endpoints
- Splunk / Datadog / S3 / BigQuery / SIEM
- Fastly’s event stream or observability tooling
If logging is enabled but incomplete, verify:
- the logging endpoint is attached to the correct service/version
- the log format includes WAF-specific fields
- sampling isn’t dropping relevant events
2. Confirm blocked requests are logged as security events
Some setups only log:
- HTTP request metadata
- origin logs
- generic edge logs
…but not the WAF decision details such as:
- matched rule ID / signature
- action taken (block, allow, challenge)
- confidence/severity
- client IP / ASN / country
- request path, method, headers, user agent
- policy or rule group name
If those fields aren’t present, you may need to enable the specific Next-Gen WAF event logging or add custom fields.
3. Check whether enforcement is happening at the edge or in the WAF layer
If the block is performed by:
- edge ACLs / rate limits / redirects
- bot management
- origin-side protections
…those may not appear in the same WAF event stream. You’ll want to correlate across:
- WAF logs
- edge logs
- origin logs
- bot/rate-limit events
4. Improve request correlation
Add or propagate a unique request identifier so you can trace a block end-to-end:
X-Request-ID- Fastly request IDs / trace IDs
- application correlation IDs
Then log that ID in:
- WAF events
- edge logs
- origin logs
- application logs
5. Reduce blind spots with richer context
If the current logs don’t show enough context, include:
- full request URI and query string
- headers of interest
- client IP and geo
- TLS/JA3/JA4 fingerprints if available
- referer and user-agent
- response status and block reason
Be careful with sensitive data:
- redact cookies, auth headers, tokens, PII
6. Review sampling and retention
Sometimes visibility is poor because:
- only a subset of events is retained
- alerts are generated, but raw events expire too quickly
- logs are sampled aggressively
If that’s the case, increase:
- log retention
- export frequency
- event capture for blocked traffic only
7. Use a staged “log-only” policy for troubleshooting
If you can safely do it, temporarily switch suspicious rules from:
- block → log / monitor / alert
This lets you see:
- what is being matched
- whether the rule is overblocking
- what patterns are causing the block
8. Validate with a known test request
Send a controlled request that should trigger a block and verify:
- it appears in your logs
- the rule ID and action are present
- the event reaches your SIEM or dashboard
- timestamps and request IDs line up
If you want, I can help you with one of these next steps:
- A checklist to verify Fastly Next-Gen WAF logging is configured correctly
- A sample log format / fields to include for blocked requests
- A troubleshooting flow to find where blocked traffic visibility is being lost
If you share your current log destination and what fields you’re seeing, I can be more specific.