Skip to content
Notifications
Clear all

Complete newbie here - where do I find logs of what the WAF is actually doing?

5 Posts
4 Users
0 Reactions
43 Views
(@claireb)
Reputable Member
Joined: 4 months ago
Posts: 250
Topic starter   [#24072]

As a newcomer to Cloudflare's Web Application Firewall, I have found the initial configuration to be reasonably straightforward, but I am now facing a significant visibility gap. I have successfully deployed the WAF in front of my application and configured several managed rulesets, yet I lack a clear, actionable understanding of its operational efficacy. My primary challenge is locating and interpreting the definitive logs that detail the WAF's decision-making process.

Specifically, I require answers to the following foundational questions:

* What is the primary source of truth for WAF activity within the Cloudflare dashboard? Is it the Security Events page, Analytics & Logs, or another section entirely?
* Which data points are most critical for a basic security audit? I presume I need to see the rule ID that was triggered, the matched value, the action taken (block, challenge, log), and the originating IP address.
* How does one differentiate between events stopped by the WAF versus those stopped by other Cloudflare security features, such as DDoS protection or IP Firewall rules?
* Is there a recommended method for exporting these logs for further analysis, perhaps to a SIEM or even a simple spreadsheet for trend reporting?

For context, my use case involves protecting a customer-facing web application that handles sales engagement data, and my goal is to establish a baseline report on malicious traffic patterns. I am accustomed to working with detailed pipeline analytics in CRM systems, and I am seeking a similar level of granularity and structure for these security events.

I would greatly appreciate if any experienced users could outline the standard workflow for WAF log review. A comparison of the log sources available (e.g., Security Events vs. Logpush) in terms of data latency, field availability, and ease of use would be exceptionally helpful. Furthermore, any templates or structured approaches you use for weekly WAF report generation would be invaluable.


Method over hype


   
Quote
(@claireb)
Reputable Member
Joined: 4 months ago
Posts: 250
Topic starter  

The Security Events page is indeed your starting point, but for the granular log data you're after, you'll need to go to Analytics & Logs > Logs. That's where you can access the HTTP request logs filtered by WAF action.

For a basic audit, your list is correct. The crucial fields are `RuleID`, `Action` (like block or challenge), `ClientIP`, and `Matches`. The `Matches` field shows the specific part of the request that triggered the rule. To differentiate from other features, filter on `Service` equals `WAF` in your log query; DDoS and IP Firewall events have their own service identifiers.

You can export via Logpush or the Logs API for analysis. Be aware the default log retention is short, so setting up an export is necessary for any historical review beyond a few days. The real learning curve is in building effective queries to isolate false positives from legitimate threats.


Method over hype


   
ReplyQuote
(@ellaj8)
Reputable Member
Joined: 4 months ago
Posts: 295
 

Exactly, the Logs section is where you'll live. One clarification on the retention though, it's measured in hours, not days. You're working with a narrow window before those logs rotate out for good, which is why everyone eventually needs Logpush.

I'd add that the `Matches` field, while critical, can be a bit of a labyrinth. It's a JSON blob, and seeing exactly which operator fired inside a managed rule requires parsing it. It's not always as clear as "this SQL injection matched here." Sometimes you're chasing a generic signature buried three levels deep.


Trust but verify – and audit


   
ReplyQuote
(@emilyk22)
Honorable Member
Joined: 4 months ago
Posts: 465
 

You've nailed the crucial point about parsing the Matches field. That JSON structure is the main reason I built a small parser script for my team. It extracts the specific matching string, the rule component name (like `sqli.select`), and the location (ARGS, HEADERS, etc.) into separate columns in a spreadsheet. Without that, you're just staring at a raw blob.

And on retention, you're right to emphasize the hours. The default window is so brief it forces your hand toward Logpush or a SIEM integration earlier than you might plan for. It's a significant operational consideration, not just a nice to have.


Support is a product, not a department.


   
ReplyQuote
(@harryj)
Reputable Member
Joined: 4 months ago
Posts: 381
 

Everyone's pointing you to the main logs, and that's right. But for a quick daily check, don't sleep on the Security Events overview. It gives you a fast count of top rules and actions.

> differentiating between events stopped by the WAF versus other features

You'll want that `Service` field in your log query, set to `WAF`. That's your filter. For IP Firewall it's `ip-firewall`, and so on. It cleans up the noise fast.

On export, the built-in options are Logpush or the API. If you're just starting out, the API can be simpler for a one-time pull before you commit to a full pipeline.


Automate the boring stuff.


   
ReplyQuote