SECOPS

Correlate Datadog WAF anomaly alert with Cloudflare evidence

When Datadog fires a WAF block-rate anomaly monitor, it pulls the matching Cloudflare firewall events, builds an evidence pack of top rules and ASNs.

CategorySecOps
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDatadog WAF anomaly monitor firesDatadogDatadog
  • LogicParse alert window and affected zone
  • ActionFetch matching Cloudflare firewall eventsCloudflareCloudflare
  • LogicRank top rules, ASNs, and sample URIs
  • OutputReply in Slack alert thread with evidenceSlack

What it does

It listens for a Datadog anomaly monitor on Cloudflare WAF block rate. The moment the monitor trips, it reaches into Cloudflare for the firewall events covering the alert window, assembles an evidence pack (top rules, top ASNs, sample blocked URIs, country mix), and posts that enrichment straight to the Slack thread the alert opened — turning a bare "block rate is high" ping into an actionable picture.

When to use it

Use it when Datadog already owns your alerting and you want every WAF anomaly to arrive pre-investigated rather than as a number an analyst has to chase down across two consoles.

How it works

  1. 1A Datadog monitor webhook triggers on the WAF block-rate anomaly.
  2. 2The flow parses the alert's time window and affected zone.
  3. 3Cloudflare returns firewall events for that window.
  4. 4Logic ranks the offending rules and ASNs and pulls representative blocked requests.
  5. 5Slack receives the evidence pack as a reply tied to the originating alert.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect DatadogMetrics, traces, log search.
  2. 2
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.