Send only the decisions (a SIEM you can afford)
For a one-person security team that wants its edge in Sentinel without a scary bill.
Why raw logs bankrupt you
Section titled “Why raw logs bankrupt you”A SIEM charges you for every gigabyte you send it. Most teams start by shipping every request their web server, firewall or CDN sees. That is the expensive mistake:
- Most of those rows are normal visitors. Nobody ever looks at them, but you pay to store each one.
- The numbers grow fast. One million requests a day at about 1 KB each is about 30 GB a month. At the East US pay-as-you-go price for a Sentinel workspace (about $6.60 per GB, see the cost section) that is roughly $200 a month, before anyone has asked a single question.
- You then pay again to search them. Every rule and every dashboard has to dig through the noise to find the few rows that matter.
The idea: send what your blocking layer decided
Section titled “The idea: send what your blocking layer decided”Your firewall, WAF, Cloudflare Worker or reverse proxy already did the hard part. It decided: this request was blocked, this one hit a trap (a canary path no real visitor ever asks for). Those decisions are the only rows a person acts on. So send those, and nothing else.
- One row per decision. Time, what happened (
blockorcanary), the client IP, country, network (ASN), method, path (cut to 256 characters), the rule that fired. - No user agents, no headers, no cookies, no full URLs with query strings. Smaller rows, less personal data, nothing you have to explain later.
- Never your own addresses. Keep a list of the IPs you and your team use and drop them before sending. A rule that acts on a row with your own IP can lock you out.
The trick: enrich before you ingest
Section titled “The trick: enrich before you ingest”Lookups are free at the source and expensive in the SIEM. If you join every row against a threat-intel table inside Sentinel, you pay for that query every time the rule runs. If you add the answer before you send the row, it costs you nothing in Sentinel and every rule and dashboard gets it for free.
So each row arrives already answered. Our rows carry these extra columns, filled in by our sender from our own threat-intel lookup:
| Column | What it says |
|---|---|
HeldBasis |
Why we hold this IP: observed (our own sensors), curated (our research), feed (a public list we carry), reference-only, not-held, or unknown |
Actor, MalwareFamily |
The group or malware it is tied to, when we know |
FirstSeen |
When this IP first entered our data (when we recorded it, not when it started attacking) |
Neighbors24 |
How many other IPs in the same /24 network we hold. NeighborsNote says truncated (200 means 200 or more) or shared-tenancy (a cloud range: neighbors there are co-tenants, not partners) |
OnPublishedFeed |
Whether the IP is a row in our published blocklist |
Cve |
For trap hits: the CVE whose public exploit code uses that exact path. A path match, not proof of exploitation |
unknown and empty never mean clean. If a lookup fails, the sender writes unknown (or leaves the column empty) and tries again next time. Your own sender can use any lookup you have: your own blocklist, the DugganUSA correlate search (Pro and above) with a key, or nothing at all. Leave a column empty if you have nothing for it.
What it costs (our numbers)
Section titled “What it costs (our numbers)”We measured this for our own edge on 2026-12-03:
| Decisions per week | about 9,400 (5,281 blocks measured over 7 days; canary hits about 4,100, projected from the last 8 hours) |
| Size per row | 495 bytes on average (as JSON, from a real sample of 400 rows, enrichment included) |
| Per month | about 41,000 rows, about 20 MB |
| Price | $4.30 per GB (Sentinel pay-as-you-go analysis) + $2.30 per GB (Log Analytics ingestion; the first 5 GB a month on a billing account are free), East US, Azure retail prices API |
| Bill | about $0.13 a month |
Our JSON size is an upper bound: Azure bills what it stores, which leaves out the column names. After your first day, check the real number with DugganUSAEdgeDecisions_CL | summarize sum(_BilledSize).
The same edge sending every request would be thousands of times bigger. That is the whole point.
Which table plan
Section titled “Which table plan”Log Analytics tables come in three plans. Pick by what has to read the table:
| Plan | Ingestion | Sentinel scheduled analytics rules | Workbooks | Queries |
|---|---|---|---|---|
| Analytics | full price | yes | yes | included |
| Basic | cheaper | no | yes, but each refresh is billed | billed per GB scanned |
| Auxiliary / data lake | cheapest | no | slow, billed | billed, slow |
Use Analytics. A scheduled rule needs it, and at 20 MB a month the cheaper plans would save you pennies while billing every dashboard refresh. On a Sentinel workspace, 90 days of Analytics retention are included. (Sources: table plans, Sentinel log tiers.) If your decisions ever run to gigabytes a day, revisit this.
Step 1: Create the table, the rule and the permission
Section titled “Step 1: Create the table, the rule and the permission”You need: a Log Analytics workspace with Microsoft Sentinel turned on, and rights to create resources and assign roles in its resource group (Owner, or Contributor plus User Access Administrator).
The template creates three things and nothing else:
- A custom table,
DugganUSAEdgeDecisions_CL, on the Analytics plan, with only the columns above. - A data collection rule (DCR) with its own ingestion address. No separate data collection endpoint is needed unless you use Private Link. Its transform keeps only the declared columns and only
blockorcanaryrows, so a sender bug cannot bloat your bill with extra fields. - The “Monitoring Metrics Publisher” role on that one rule, for the identity that sends. Nothing wider.
Download azuredeploy.json, then:
az deployment group create \ --resource-group <your-workspace-resource-group> \ --template-file azuredeploy.json \ --parameters workspaceName=<your-workspace> senderPrincipalId=<object-id-of-the-sender-identity>The output gives you two values the sender needs: logsIngestionEndpoint and dcrImmutableId.
Which identity sends? If your sender runs in Azure (a Container App, Function, VM), give it a managed identity and use that identity’s object id: no password to store or leak. If it runs elsewhere (a Cloudflare Worker, your own server), create an app registration and use its service principal’s object id, ideally with workload identity federation, or a client secret you rotate.
Step 2: Send the rows
Section titled “Step 2: Send the rows”Any firewall, Worker, WAF or script that can make an HTTPS POST with JSON can do this. The whole protocol is: get a token for https://monitor.azure.com, then POST a JSON array.
// Tiny sender: works in Node 18+, a Cloudflare Worker, Deno or Bun.// rows: [{ TimeGenerated, Kind, EventId, ClientIP, Country, ASN, Method, Path, Host, Ttp, Reason, RuleId, Confidence, ... }]async function sendDecisions(rows, cfg) { // 1. Token (app registration with a client secret; use a managed identity instead when you run in Azure). const tok = await fetch(`https://login.microsoftonline.com/${cfg.tenantId}/oauth2/v2.0/token`, { method: 'POST', body: new URLSearchParams({ grant_type: 'client_credentials', client_id: cfg.clientId, client_secret: cfg.clientSecret, scope: 'https://monitor.azure.com/.default', }), }).then((r) => r.json());
// 2. POST, under 1 MB per call. Success is 204 and only 204. const url = `${cfg.endpoint}/dataCollectionRules/${cfg.dcrImmutableId}` + `/streams/Custom-DugganUSAEdgeDecisions?api-version=2023-01-01`; const res = await fetch(url, { method: 'POST', headers: { Authorization: `Bearer ${tok.access_token}`, 'Content-Type': 'application/json' }, body: JSON.stringify(rows), }); if (res.status !== 204) throw new Error(`ingestion failed: HTTP ${res.status}`); // never log the token}Four habits that keep it cheap and honest:
- Batch. Send every few minutes, not per request. Keep each call under 1 MB (about 2,000 of our rows).
- Remember where you got to, and move that marker only after a 204. If a call fails, the next run sends the same rows again instead of losing them.
- Give every row an
EventId(the firewall’s event or ray id). Sentinel does not remove duplicates for you, so a resend can be cleaned up in the query (see below). - Drop your own IPs before sending, and cut long fields (we cut everything to 256 characters).
Step 3: Use it
Section titled “Step 3: Use it”Who is knocking, and what do we already know about them (today, duplicates removed):
DugganUSAEdgeDecisions_CL| where TimeGenerated > ago(1d)| summarize arg_max(TimeGenerated, *) by EventId| summarize Decisions = count(), TrapHits = countif(Kind == "canary"), Paths = make_set(Path, 5), Cves = make_set_if(Cve, Cve != "", 5) by ClientIP, Country, ASN, HeldBasis, Actor, MalwareFamily| order by TrapHits desc, Decisions descA scheduled analytics rule worth having: an IP that tripped a trap at your edge also tried to sign in. Trap paths are never visited by real users, so this pairing is rare and worth a look:
let trapped = DugganUSAEdgeDecisions_CL | where TimeGenerated > ago(1d) and Kind == "canary" | summarize TrapHits = count(), Ttps = make_set(Ttp, 5), Cves = make_set_if(Cve, Cve != "", 5), HeldBasis = any(HeldBasis), Actor = any(Actor) by ClientIP;SigninLogs| where TimeGenerated > ago(1d)| join kind=inner trapped on $left.IPAddress == $right.ClientIP| project TimeGenerated, UserPrincipalName, IPAddress, ResultType, AppDisplayName, TrapHits, Ttps, Cves, HeldBasis, ActorRun it every hour over the last day. Because every row already carries HeldBasis and Actor, the alert explains itself: no extra lookup when it fires.
Questions
Section titled “Questions”Why not Cloudflare Logpush or a full log export? Because it ships every request, which is the cost problem this page exists to avoid. Send the decisions; keep the raw logs where they are free to keep (or do not keep them).
Can I use this without DugganUSA? Yes. The table, the rule and the sender are plain Azure. Fill the enrichment columns from whatever lookup you have, or leave them empty.
What if I am not on Sentinel? The same idea works for any SIEM that bills by volume: send decisions, enrich first, batch, move your marker only on success.
Related
Section titled “Related”- Microsoft Sentinel (Deploy to Azure): bring the DugganUSA feed into Sentinel.
- Answer incidents automatically: enrich every new incident with our lookup.
Something on this page wrong, or a step that did not match your screen? Tell us at [email protected]: it takes one email and we fix the page the same day.