Roll Your Own
Most of what an enterprise SIEM sells is now a commodity. Build the same outcome from cloud primitives, open content, and a language model. Pay a vendor only for the two things still worth buying: total cost of ownership and liability transfer.
1. The $300,000 Question
For much of the software a mid-sized company used to rent, the smart move now is to build the same outcome from cloud primitives, open-source content, and a language model. Pay a vendor only for total cost of ownership and liability transfer.
Security is the worked example, but the same math fits observability, data loss prevention, eDiscovery, compliance, and IT ticketing. A few good engineers can build most of what vendors sell in weeks.
Picture a 2,000-person company with a six-person security team running on coffee and Slack notifications. It runs on Google Workspace or Microsoft 365, AWS or GCP or Azure, GitHub, and Okta or Entra: the shape of 90% of the working economy.
One Tuesday the team buys a SIEM, the system that collects security logs and raises alerts. List price is $300,000 a year; after a long negotiation and a steak dinner, it lands at $190,000. Then the cloud posture tool turns out to be extra ($60,000), and so does data security posture management, or DSPM ($120,000). Add automated response for $40,000 and managed detection for $200,000, and the bill tops $600,000 before anyone is hired to use it.
The dashboard has nine widgets. Six are red, two are yellow, and one shows a metric nobody recognizes. A customer success manager offers a quarterly review to gently explain the widgets. The widgets stay red.
That is the wrong shape. Anyone who can read Terraform and write YAML can build the right one from parts that cost about a hundredth as much, with a stronger audit trail and no vendor to get breached, because there is no vendor.
Two free, open-source projects back the argument: mantissa-log and mantissa-stance. Both run in your own cloud and, on purpose, have no dashboard. The interface is Slack, Teams, or a command line.
This is not for a Fortune 100 security operations center. It is for mid-sized, cloud-native teams willing to own systems and read code.
2. What You Are Actually Buying
A six-figure commercial SIEM is nine things stapled together. Eight are commodities. One is not.
Your cloud rents out items one through eight for a sliver of the price. Item nine is what the vendor still earns.
SIEM pricing scales with volume, yet a month of logs at a terabyte a day (about 30 TB) costs roughly $700 a month to keep in your own S3 in 2026, not $70,000. The markup is the bundle.
The real moat is not the product
So why do Splunk, QRadar, Sentinel, and Chronicle still charge what they do? Two moats.
The first is switching cost. Years of Splunk pile up dashboards, saved searches, PagerDuty wiring, custom apps, and analyst muscle memory. Think rent versus renovations: $40,000 a year for the building, $400,000 over a decade redoing the kitchen. The vendor prices against the move, not the rent. Building does not erase that cost. It turns a recurring invoice into an upfront investment plus a small tail.
The second is parsers and detection content: years of work turning messy audit data into something queryable (Splunk's TA-* apps, Chronicle's CBN parsers, Sentinel's KQL parsers, QRadar's DSMs).
Three forces have made that cheap to copy. Audit data is settling into a few standard shapes (Elastic Common Schema, OCSF, CloudEvents), so parser work is mostly renaming fields. Sigma, an open format for detection rules, has a community pack in the thousands. And language models draft a parser from a sample event in hours.
A moat of five years of writing parsers and rules is now a moat of five years of writing parsers and rules whose equivalents can be replicated in months. Migration is an ordinary engineering plan: map each parser and rule to an open equivalent and close the gaps that matter. The buyer can now price the switching cost and credibly threaten to pay it.
3. The Dashboard Was Never the Goal
Dashboards are a precomputation from an era when storage was expensive and humans were the cheapest part of the system. What remains is habit and looks.
When queries were costly, you boiled everything into a few charts ahead of time, and anything not on the dashboard could not be asked.
Picture a 1985 supermarket. Nobody can ask the database how much soup sold this week, so the manager prints a report on Friday. By Monday it is fiction. The dashboard is that Friday report, screen-shaped, with a slightly better refresh rate.
Now storage is nearly free, and a language model writes any query in five seconds.
Security teams glance at dashboards at standup and work in tickets and threads. The dashboard is theater for a buyer justifying last year's purchase, like hiring someone to stare at a fire alarm. The alarm is the point. The stare is the waste.
The two columns have not matched for a decade. A Grafana latency panel the on-call engineer really watches earns its keep. The security dashboard does not.
4. Outcome as a Service
If the goal is not watching a chart, what is it? Three things: evidence, alerts, and answers.
Evidence is every security event, with context, in a store nobody can edit. It is what auditors read and what engineers check when someone asks why a permission was granted last August.
Alerts are the short list worth waking up for: mass file deletion, a production root credential in use, org-wide MFA turned off. Twenty rules, not two thousand, each with enough context to decide in sixty seconds, cat still on your lap.
Answers mean anyone can ask the data anything. Who logged in from a new country today? The answer lands in chat in under thirty seconds, with its SQL shown underneath.
- Loop 1: evidence. Source → Normalize → Lake (object lock, retention). Append-only. Cheap to store, expensive to lose.
- Loop 2: alerts. Stream → Detector → Page + Slack thread + Teams card. Real time.
- Loop 3: questions. Chat → NL to SQL → Query engine → Answer in chat. On demand.
Call it outcome as a service: three loops, delivered into the tool the team already uses. The only vendors are a cloud and an LLM provider. The rest is open code the team can read, change, and blame for the right reasons.
5. The Lake as Foundation
Every loop ends in a pile of files in object storage, organized by date and source. Get the pile right and everything above it stays small.
Object storage is a salt mine: cheap to dig, and the contents last forever. S3, GCS, and Azure Blob promise eleven nines of durability, so you will lose your team to attrition before you lose a log file. Storage runs about $23 per terabyte per month, and cold tiers are ten times cheaper. With object lock, no one, not even the account owner, can change or delete a file before its retention window ends.
That is what an audit trail needs. Older SIEMs keep logs in pricier databases that can be edited, like storing court evidence in a sandbox.
s3://your-bucket/
events/
source=cloudtrail/dt=2026-05-09/hh=14/part-0001.parquet
source=gws/dt=2026-05-09/hh=14/feed=login/part-0001.parquet
source=m365/dt=2026-05-09/hh=14/feed=signins/part-0001.parquet
source=okta/dt=2026-05-09/hh=14/part-0001.parquet
snapshots/
source=stance/dt=2026-05-09/scan=full/resources.parquet
_state/
collectors/gws/login/last_watermark.json
collectors/m365/signins/last_watermark.json
Each source writes Parquet, a compact columnar file format, split by date because every security query filters on time. Watermarks (bookmarks of the last event read) let collectors restart without losing or duplicating events.
Athena, BigQuery, and Synapse Serverless read them for $5 to $6 per terabyte scanned, within 10% of each other on cost and speed. Pick the one that matches your main cloud and stop thinking about it.
The catch is latency: eight to thirty seconds per terabyte. That suits questions and hourly detection, which is most security work. For urgent rules, scan only the freshest partitions or add a small streaming buffer.
File size matters too. A million 4 KB files scan far slower than ten 400 MB files holding the same bytes, like searching a drawer of sticky notes instead of ten bound books. Merge small files hourly, and let lifecycle policies move old data to cold tiers.
6. The Determinism Boundary
The model is not allowed to produce facts. It is only allowed to translate. English goes in, SQL comes out, the SQL runs the same way every time, and the rows that come back are real.
Ask a model to summarize data on its own and you get something plausible that cannot be checked. Sometimes it is wrong, and you cannot tell when.
Think of a court interpreter. Their job is to translate, not testify. The moment they offer their own version of events, the trial is compromised. The model may be the interpreter. It may never be the witness.
- Chat input. "show me oauth grants this week with drive scopes"
- Language model (probabilistic). Reads the schema from the lake catalog. Produces candidate SQL.
- SQL validator (deterministic). Checks the SQL and estimates TB scanned and dollar cost. The user approves, or it auto-approves below a threshold.
- Query engine (deterministic). Athena, BigQuery, or Synapse. Reads Parquet, returns rows.
- Language model (probabilistic, second pass). Summarizes the rows in English. Reports empty results and errors as such. Never invents rows.
- Chat output. English summary, the exact SQL that ran, the row count, the cost.
Robotics and finance use the same rule: wrap the guessing system in an exact one. A self-driving car perceives probabilistically but steers through actuators with hard safety limits. A bank's fraud model scores probabilistically but posts debits through double-entry ledgers.
The price is verbosity, but an answer you cannot verify is one you should not trust.
One more catch: NL-to-SQL works well on stable, well-named schemas and poorly on cryptic ones that change weekly. So the lake schema is a contract between the collectors and the model.
7. Mantissa Log as Worked Example
Mantissa log is a SIEM built on the architecture above. It is open source: about 80,000 lines of Python, around thirty log source parsers normalizing into Elastic Common Schema, and 690 Sigma detection rules. Its question layer supports eight LLM providers, bring your own key.
- Collectors. CloudTrail, GCP audit, Azure activity, Google Workspace, Microsoft 365, Okta, Duo, GitHub, CrowdStrike, Jamf, Zeek, Suricata, OTLP.
- Pipeline. Parser registry, ECS normalizer, field mapping, schema validator, redaction (PII), dedupe + watermark.
- Lake. Parquet files, partitioned by date+source, object lock, lifecycle.
- Detection. Sigma engine, identity baselines, travel analyzer, destructive events, source health monitor.
- Query. NL to SQL router, schema context, cost estimator, provider factory (Anthropic, OpenAI, Bedrock, Vertex, Azure OpenAI).
- Interface. Slack bot, Teams bot, CLI. No web UI.
Normalization is the unglamorous heart of the project. Picture a customs warehouse where trucks arrive from twenty countries, labeled in twenty languages. Until everything is relabeled, nobody can answer "do we have fifty kilograms of coffee?" Logs are the same: without normalization, "what did user X do today" returns nothing useful.
This is the open version of Splunk's TA-windows, TA-cisco-asa, and TA-aws: about a thousand field mappings across thirty-some sources. A new source takes half a day to a few days. Most migration effort lands here, but each parser is a small Python module you own, not something you buy again at renewal.
A Sigma engine turns community rules into SQL, and native SQL covers what Sigma cannot express. Commercial libraries (Splunk's ESCU, Chronicle's curated detections, Sentinel's analytics rules, QRadar's content extensions) map to MITRE ATT&CK, the public catalog of attacker techniques, but the open pack covers most of the same techniques with different field names. An irreplaceable rule ports in an afternoon. The deep moat is analysts' years of tuning, and the only way across is to tune again.
A separate identity layer keeps a baseline for each user (IPs, networks, countries, user agents, sign-in hours), plus an impossible-travel analyzer and a risk score. A login from Brazil at 03:00 may be fine on its own. The same login, by a user who has only ever signed in from Texas, on the day they gave a third-party app full Drive access, is a different story. Sigma catches the first. The identity layer catches the second.
The limits: this is no Splunk replacement for a team ingesting 50 TB a day, but 90% of teams ingest under 5 TB. The LLM provider sees question text and schema, never row data. For strict data residency, self-host a model through Bedrock or Vertex private endpoints, at higher cost and latency.
8. Posture Has a Different Shape
If mantissa log handles events, mantissa stance handles posture: how your systems are configured right now. The two kinds of data are shaped so differently that they live in separate codebases.
Events are a security camera feed: everything that happens, in order, forever. Posture is a building inspection: what is wrong right now.
Mantissa stance covers cloud configuration (CSPM) for AWS, GCP, and Azure; permissions (CIEM) across providers; DSPM, classifying files in Drive, SharePoint, S3, GCS, and Azure Blob; Kubernetes; container images; and Terraform and CloudFormation. Posture is a breadth problem. Checking AWS alone is pointless if your data lives in Workspace and your identities in Entra.
Each snapshot is checked against plain YAML policies like this one:
id: gws-oauth-001
name: No unverified third-party app with Drive full scope
enabled: true
severity: high
resource_type: gws_oauth_app
check:
type: expression
expression: "resource.verified == true or
'auth/drive' not in resource.scopes"
compliance:
- framework: cis-google-workspace-foundations
version: "1.0.0"
control: "5.3"
- framework: nist-800-53
version: "rev5"
control: "AC-6"
Boring on purpose. A novice or an auditor can read it and version control can diff it. Anything fancier tends to serve the vendor.
The interesting part is the identity graph. Resolve AWS IAM, GCP IAM, Azure RBAC, Workspace admin roles, and Entra role assignments into one permission model, and high-value questions become askable. Which Entra users are AWS admins through SAML federation? Which Workspace super admins are also GCP organization admins? Which M365 service principals hold Mail.ReadWrite through an app registration owned by a contractor?
CIEM vendors charge $200,000 a year to answer those. The graph fits in memory, and the hard part (federation trusts, role chains, and group memberships across providers) is in mantissa stance, in the open.
The trade-off: breadth makes some domains shallower, so a team that needs the deepest Kubernetes analysis should buy a specialist tool. Most teams gain more from one policy format and one identity graph across everything.
9. The Surface That Already Exists
Once the dashboard is gone, something has to replace it. That something is the chat tool the team already uses: Slack for most, Teams for Microsoft shops.
A new console demands a new habit. The channel the team already lives in demands nothing. Three patterns, in rising order of value:
Alerts as threads. A destructive event opens a thread with what happened, who, when, and the evidence. Every reply is a follow-up scoped to the same user and time window.
Questions as slash commands. /mantissa ask show me oauth grants this week with drive scopes returns the answer, the SQL, the row count, and the cost.
Workflow handoff. Buttons open a PagerDuty incident, create a Jira ticket, page the on-call, or suspend the user. Each press is audited and written back to the lake.
#sec-oncall
[BOT 02:14] HIGH: org-wide 2FA enforcement disabled
source: google_workspace
actor: admin@company.com
ip: 82.x.x.x (new ASN, first seen today)
session: gws-sess-9af1
[ENG 02:15] @bot anything else from admin@company.com today
[BOT 02:15] 4 events. SQL ran in 1.8s. Cost: 0.4 cents.
02:11 sign-in from new ASN
02:13 admin role assignment to ext-vendor@partner.com
02:14 2FA enforcement disabled
02:15 oauth grant to "Acme PDF Viewer" (Drive full)
[ENG 02:16] @bot suspend the user in workspace
[BOT 02:16] Action queued via gws admin api. Confirm? Y/N
[ENG 02:16] Y
[BOT 02:17] User suspended at 02:17:08. Audit ID: gws-act-83d2.
Three minutes, start to finish. No console, no ticket to chase. The thread is the incident channel and the audit log, searchable in the chat tool itself.
Actions that need multi-party approval, change control, or specialized forensics still go to the systems built for them.
10. Bring Your Own Cloud, Bring Your Own Key
There is no central server. Everything runs in the customer's own cloud account, and the only vendors are the cloud, the LLM provider, and the identity provider. Three payoffs follow.
First, a breach of the mantissa-log project breaches no deployment. Think of a thousand homeowners each holding their own key, versus a thousand keys in one safe at the locksmith's.
Second, every record stays in the customer's own region, so data residency becomes almost trivial. Third, storage, query, and tokens each show up on a cloud bill the customer already reads.
Engineer time, for running collectors and rule packs, is work the team already does in some form. A two-person team at a fifty-person company should almost certainly buy. A six-person team at a 2,000-person company is the sweet spot. A fifty-person team at a 10,000-person company will likely run a hybrid.
The math for the opening company (500 GB a day, one-year retention, a dozen detections, a few hundred questions a month): the bundle runs $400,000 to $700,000 a year. The build runs about $70,000 in cloud spend at list prices: about $50,000 to keep a year of logs (roughly 180 TB), $12,000 to $18,000 for query (a few hundred TB scanned a month at $5 per TB), a few thousand for compute, and low four figures for tokens. Treat that as a ceiling: Parquet compression and lifecycle tiering usually shrink the storage and query lines several times over. Add half an engineer (call it $150,000) for about $220,000 all-in. That saves $180,000 to $480,000 a year.
11. The Pattern Generalizes
Security is not the only category where this recipe works. Picture Slack answering "what is the slowest checkout endpoint right now?" or a legal hold that is just a tag on locked files.
Collectors + lake + policies or detectors + NL query + chat UI.
- SIEM. CloudTrail, GWS, M365, Okta, GitHub. Sigma rules.
- CSPM. AWS, GCP, Azure resource snapshots. YAML policies.
- DSPM. File contents from Drive, SharePoint. Classifier rules.
- CIEM. IAM across providers. Graph queries.
- APM. OTLP traces and metrics. SLO rules.
- DLP. File and message content. Match rules.
- eDiscovery. Mail, chat, file archives. Hold metadata.
- GRC. Control evidence APIs. Control YAML.
- ITSM. Tickets and assets. SLA rules.
Collectors and rules change. The lake, query engine, language layer, and chat surface stay. It is a kit, not a product, built from mature commodities.
The next categories to fall have lots of structured event data, heavy retention needs, workflows already in chat, and vendors charging non-commodity prices for commodity parts. Security is just where the dollar amounts are most visible. Vendors will resist, because their business depends on a bundle the economics no longer support.
12. What Made This Possible
The parts have been arriving for fifteen years. Combining them became practical only in about the last three, once four preconditions matured.
- 2006. S3 launches. Object storage becomes commodity.
- 2013. Slack launches. Programmable team chat enters the mainstream.
- 2016. Athena launches. SQL on object storage becomes commodity.
- 2017. Teams launches.
- 2020. Serverless query is widely usable. Object lock is widely available.
- 2023. GPT-4 arrives. NL to SQL becomes useful.
- 2024. Cost of storing a TB-year of logs falls below $100.
- 2025 onward. All four preconditions are mature simultaneously.
Two of those shifts deserve a closer look. When a terabyte-year of audit data fell from about $300 in 2018 to a third of that by 2024, the rule flipped to keep everything, as it did for photos around 2010. And language models crossed useful before perfect, like GPS: a navigator right 99% of the time still replaced the paper map.
With all four mature, this became the obvious shape. What slows adoption now is habit, contracts, and procurement.
13. What You Give Up, and Why You Might Still Pay
An argument only for building would be dishonest. Building gives up real things, and two of them are worth paying for: total cost of ownership and liability transfer.
The first is total cost of ownership. Run it yourself and you are the vendor. Collectors break when APIs change, schemas drift, and upgrades break parsers. A vendor's bill mostly pays to absorb that. If half an engineer would cost you more in opportunity than the whole license, pay. Teams without the culture to own systems end up with abandoned half-builds and an angry CISO.
The second is liability. A vendor promises indemnity, produces a SOC 2 report, takes your call on a Sunday mid-incident, and walks your auditor through the controls. For regulated industries, public companies, and anyone whose cyber insurance names specific tools, that is not optional. You are buying insurance with software attached, and for many this is the bigger reason. Keep a managed tool for that certified scope and build the rest.
Breadth is a smaller loss than it looks. A commercial SIEM ships 3,000 parsers and 2,000 rules, but that is a long tail with a fat head. A typical mid-sized company ingests fifteen to thirty sources. The head (cloud, identity, productivity suite, code host, endpoint, network gateway) already has open parsers, and the tail (legacy appliances, internal apps) gets written as needed. Day one covers 90% of volume with 5% of the parsers.
The rest is minor. Polish on edge cases like the obscure SAML attribute matters only on your critical path. Inertia after a decade of tuning one SIEM is rational. And the board chart? The case against dashboards is right on the merits and wrong on the politics, so point a free Metabase or Superset at the lake. The chart is decoration. The work is real.
Assuming the bundle is uniquely capable is not a good reason. The point is not "never buy." It is buy the liability, build the tool: pay for part nine and build the other eight. The liability is a small line item from a specialist (a compliance attestation service, an audit-response retainer, an insurance rider). Separate the two and the bundle price collapses.
14. The Decision Framework
Four questions, in order. A clear yes to any of the first three leans toward buying. Three clear noes and a yes to the fourth leans toward building.
- Does an auditor, regulator, or insurer require a specific certified product? Yes → buy. End of analysis for that scope. No → go to 2.
- Is the workflow life-critical or revenue-critical at sub-second latency? Yes → buy the part with the SLA. Build the rest. No → go to 3.
- Is the team's engineering culture intolerant of operating internal infrastructure? Yes → buy. The TCO math will lose to operational drag. No → go to 4.
- Are the commodity components (storage, query, alerting, rules) available in your cloud + open source? Yes → build. The savings are real and the tail is manageable. No → revisit in a year. The components keep arriving.
Most mid-sized cloud-native organizations answer no, no, no, yes for security tooling today. A Fortune 100 bank answers yes at one, two, and probably three, so its big bill mostly buys things it needs.
- SIEM (Splunk, Sentinel, Chronicle, QRadar) → S3/GCS + Athena/BigQuery + Sigma + mantissa-log.
- CSPM / DSPM / CIEM (Wiz, Orca, Prisma) → Cloud APIs + YAML policy + mantissa-stance.
- Code review (Snyk Code, SonarQube, Veracode, Codacy) → reviewr (clay-good).
- Dep / SCA (Snyk, Dependabot Pro) → blastauri (clay-good) + Renovate.
- Bug bounty (HackerOne triage managed services) → bountybot (clay-good).
- AI policy / GRC (Credo, Holistic AI) → policybind + attestful + nisify (clay-good).
- Workspace DLP (Nightfall, Polymer) → vaulytica (clay-good).
- APM (Datadog, New Relic) → OTLP collectors + Parquet in lake + Grafana.
- eDiscovery (Relativity, Logikcull) → S3 with object lock + NL query layer.
- Runtime AI sec (Lasso, Lakera) → proxilion-sdk + proxilion-mcp (clay-good).
- Managed agent governance (nothing dominant) → proxilion + provenance (clay-good).
Most of the right column is MIT-licensed and self-hosted, and none of it phones home. Pick the three or four rows that match your real pain, not all eleven.
And the case for building keeps improving:
Three lines improving, one moving sideways. Because the gap rests on three independent curves, not one new technology, it widens every year.
And then, death to the dashboard
Once you decide to build, do not clone the vendor's product, dashboard and all. Build the three loops into chat: no console, no widgets, no quarterly business review. Where someone really watches (a payments NOC, an SRE screen during a launch), keep the screen. Choose on purpose.
Death to the dashboard is the second decision. The headline is the first: roll your own where it makes sense, and pay only for the parts that truly cannot be rolled.
Note. Mantissa log and mantissa stance are MIT-licensed open-source projects at github.com/clay-good/mantissa-log and github.com/clay-good/mantissa-stance. Read the source, test the claims, and form your own view. Contributions that extend the patterns to nearby categories are welcome.
Note. Pricing figures are public cloud list prices and approximate market prices for commercial security tools as of writing. They will drift both ways. The math lasts; the dollar amounts do not.
Note. "Outcome as a service" differs here from its occasional use in vendor marketing. It means the customer pays for the outcome (evidence, alerts, answers), not the artifact (the dashboard, the console, the report). The phrase predates the author; only its application to security tooling built from cloud commodities is claimed as new.