Skip to content
All work

The AIOps Pipeline, From Telemetry to Root Cause

Every machine reports in, the data is cleaned before anyone reads it, one cause becomes one incident, a responder acts inside fixed limits, and every lesson comes back as a check.

Category
Reliability & Automation
Role
Designed, built, and operate
Stack
WazuhSuricataauditdPrometheusAlertmanagerGrafanaGatusCloudflareClaude Code agentsOpenBao
What it proves
  • Millions of log lines a day reach the SIEM. Hundreds of thousands match a detection rule, and only the serious ones go to AI triage.
  • More than a hundred million metric samples a day feed hundreds of alert rules, and every rules file ships with its own tests.
  • A server going down takes its sites with it, and that is one incident, not a page per site.
  • No postmortem action item can stay open as prose. After a week it must name the check that covers it, or the suite goes red.

The problem

Most of what goes wrong in operations isn't a missing tool. It's a gap between tools: a log nobody filtered, an alert that fired twenty times for one cause, a fix that worked once and was never turned into a check. I spent thirty years closing those gaps by hand in NOCs and incident rooms. This is the same loop, built so the machine takes the first shift and I get the decisions that are actually mine.

It runs as six stages. Each one has a job, a rule about what it may never do, and a check that goes red if it goes quiet.

The loop

Collect, clean, correlate, decide, act, learn. The arrow from learning back to collection is the part most shops skip, and it's the part that makes the rest get better instead of just busier.

FigureDrawn
The AIOps pipeline as a loopTelemetry is collected from every host, filtered and masked at the source, correlated into one incident per cause, decided on by AI triage and a multi-vendor vote, acted on only from a fixed catalog, and closed with a postmortem whose lessons become new checks that feed back into collection.1. Collectlogs, audit, network, metrics2. Filter, mask, routepersonal data removed at source3. Correlateone cause, one incident4. DecideAI triage, multi-vendor vote5. Actcatalog actions only6. Learnpostmortem, then a checklessons become checksOver a hundred invariants test every stage, every fifteen minutes.
The six stages
1. Collectlogs, audit, network, metrics
2. Filter, mask, routepersonal data removed at source
3. Correlateone cause, one incident
4. DecideAI triage, multi-vendor vote
5. Actcatalog actions only
6. Learnpostmortem, then a check
The six stages. Learning feeds back into collection and detection, so a lesson changes what the pipeline watches for, not just a wiki page.

1. Collect from every host

Every production host runs a SIEM agent that ships system logs, the journal, kernel audit events, file integrity changes and its software inventory. What each host ships is set centrally by the group it belongs to, not by the host's own config, so a host can't quietly drop a log source. Network sensors run Suricata across most of the fleet, with tens of thousands of signatures loaded. Each host also exports metrics, and an outside prober checks every public site and service the way a customer would.

Around those sit the feeds that aren't host logs: Cloudflare's edge, firewall and audit logs, vulnerability advisories, backup results and certificate expiry. Every day that comes to millions of log lines, millions of kernel audit events and millions of requests through the edge.

2. Filter, mask and route

The portals hold tax and health records, so the rule is that personal data is removed before a log leaves the machine, not after it lands somewhere. Their web server cuts the query string from every logged request and deletes the cookie, authorization and referrer headers. Application logs from those portals don't go to the SIEM at all, because a database error can echo a customer's value back into the message.

The AI lanes get less than the SIEM does. Before a security case reaches a model, the trusted side turns identifiers into meaning: a raw file path becomes "an executable in an upload directory on a customer web host", hosts and paths become stable pseudonyms, addresses become placeholders. The model gets what it needs to judge the case and no map of the fleet, and a pipeline check fails if a raw path or hostname ever appears in a published case.

Then routing. Rule matches go to the SIEM's index and dashboards. Metrics go to Prometheus. Only alerts at the serious end go to AI triage, grouped by source, with a cooldown, a per-run cap and a storm guard so a flood can't turn into thousands of model calls. Critical alerts page by email and two independent push channels, warnings by push only.

Incident log · worked example

A worked example: the second copy nobody filtered

The portals' access logs were clean. Their error logs, it turned out, weren't, because they reached the SIEM by a second road.

  1. FoundThe web server's error records went to its standard error, which the system journal captured, which the SIEM agent ships. That copy never passed through the filter, so it carried raw query strings and referrers while the access log beside it was clean.
  2. FixedThe error log now goes through the same filter as the access log, and the copy to the journal is switched off. A reverted config would bring it back, so the check reads the web server's running config, not just the file.
  3. ProvedCanary requests went through the edge with a unique marker in the user agent, the query string and the referrer. All three portals logged the request about a second later. The markers in the query and referrer appeared zero times anywhere in the SIEM, by any route.
  4. KeptA check every five minutes confirms each portal's SIEM agent still has the filtered file open and the filter is still loaded. Pointing it at a missing file turned all three hosts red, which is how I know it works.

The fix took an afternoon. The canary and the check are what turn "I think it's clean" into a claim I can make to an auditor.

3. Observe, deduplicate, correlate

Prometheus keeps a month of metrics and evaluates hundreds of alert rules, and every rules file has a unit test beside it, so a rule that would never fire fails in review rather than in an outage. Trend rules project disk, memory, inode and backup growth forward and warn days before something fills. Error rates are compared with each site's own seven-day baseline instead of one fixed threshold.

Alerts are grouped by rule and host before anyone sees them. The real correlation happens one level up: a sentinel separates a flap from a sustained failure and rolls a host outage together with every site on that host into one incident. Grafana, the SIEM's dashboards, a public status page and a war room show the same state, and a heartbeat alert proves the alerting path itself is alive, because silence is the most dangerous reading a monitor can give.

4. Decide

Infrastructure incidents go to the self-healing responder. Security cases go to an AI investigator that answers one question, whether the alert is real and by what mechanism, in a few bounded rounds, and then to a panel of models from more than one vendor that votes on the response. No single vote can raise the severity of a call.

Before either one acts, the pipeline checks whether a person is already working on that host. Every planned change opens a window first, and while it's open the responders leave that host alone and paging waits. When a major incident is declared, its hosts are frozen against routine automation until it's over.

5. Act inside fixed limits

The self-healing responder can only make changes listed in a written catalog: restart a named stateless service, put a site on the status page, take a snapshot, challenge a flooding client at the edge. A separate executor re-checks every argument against that catalog, and no database, cache, vault or mail store can ever be added to it. It snapshots first, refuses to restart something that's crash-looping, and counts a recovery only when the site serves its own correct content again. Anything off the catalog is escalated with the evidence already gathered.

The security engine picks from actions I approved in advance, and its choice can't name a machine. Containment only runs on hosts that carry a consent file. The same responder fixes monitoring drift each day, but only gaps where adding coverage is safe. Backup and SIEM hosts are always escalate-only.

6. Learn: root cause, then a check

Every incident the responder handles gets a blameless postmortem it drafts itself, with the timeline and the evidence it gathered. Major incidents get a human review on a fixed template. Both end in action items, and the rule for those is enforced in code: a week after the review, each item has to name the check that now covers it, a task that will build one, or a written reason it can't be checked. Otherwise the invariant suite goes red.

The agents are starting to learn too. A self-improvement seat launched in November reads what went wrong on the task board once a day (my corrections, reopened work, rejected reviews, tasks that failed three times) and drafts a lesson for the agent that made the mistake. Its first proposals are in review. Small notes apply directly, a lesson or a change to an agent's orders goes to a council vote, and anything touching money, vendors or the roster is refused outright.

Around the loop: invariants

More than a hundred invariants run every fifteen minutes and test that the pipeline is telling the truth: that every host is actually shipping logs, that a firewall chain is still attached, that a status page check points at the right certificate, that every invariant has documentation. Each one exists because a dashboard once read green above something broken. Detection itself gets drilled: weekly safe test attacks confirm the rules still fire and get attributed to the right host, and canaries prove the network sensors and both paging channels still deliver.

Around the loop: teams and command

The follow-up work, the fixes, reviews and rule changes the loop produces, goes to an org of AI agents run like a company. I sit at the top. The Executor holds my seat day to day, with the CEO under it, and a self-improvement seat reports to me beside it. Then come security, IT, engineering and marketing heads, and the teams under them. Orders flow down the chart only. A manager can assign work inside its own branch, managers review their branch in scheduled rounds, and a few lanes cross the chart on purpose, like an incident commander tasking any responder during a declared incident.

Every link in that chain is checked by a key. My orders from the console are signed on the console's machine. Every write to the task board is signed with a key held in the vault and chained to the last one, and the board asks the kernel who is calling rather than trusting the name typed. Approved scripts are pinned to their exact hash, and changes to the gates need a security sign-off on that hash and wait out a veto window. Anything that touches customers or money passes an owner gate in code, held by me or the Executor, and every grant records who decided and how.

What it doesn't do yet

Alertmanager groups but has no inhibition rules yet, so the sentinel does the correlation work. Logs are searchable only in the SIEM; there's no separate log store for application debugging, partly by design since the regulated apps' logs stay off it. Runtime container detection is written but not deployed. I'd rather list those here than have a reader find them.

The calls I made, and what each one cost.

  1. D01

    Mask at the source, not at the store.

    Data that never leaves the machine can't leak from the SIEM, a backup of it, or a model prompt. Filtering after ingest means every downstream copy has to be trusted.

  2. D02

    Send meaning to the model, never identifiers.

    The identifier is the signal, so stripping it costs triage quality. Computing what it means on the trusted side gives the model more to reason with and no map of the fleet.

  3. D03

    One cause, one incident.

    Twenty pages for one dead server teach people to ignore pages. Correlation happens before anyone is woken, not after.

  4. D04

    Responders act from a catalog, not from imagination.

    An action list that can be read, tested and drilled is a control. A model writing its own commands at 3 a.m. is a hope.

  5. D05

    A lesson isn't learned until it's a check.

    Prose action items rot. Making the suite fail on an unchecked item is the only version of 'we learned from this' I can verify.

More systems
Get in touchNot looking

Questions about how this works?

I'm not looking for a new role, but I'm happy to talk about toil, alert noise and incidents that never quite close.

Get in touch