Enterprise AI

AI Root Cause Analysis: How It Works and Benefits

How AI root cause analysis ranks the likely causes of a failure, what evidence each kind of tool can read, and how to judge one.

Edward Yang14 min read

AI root cause analysis uses statistical models, machine learning and language models to propose, rank and test the likely causes of a failure. It works from the evidence a system leaves behind, such as metrics, changes, code and data. An engineer still makes the final call.

Google's incident report on the October 20 europe-west2 power event shows the gap between what started a failure and what caused it. It names an external utility cable fault as the trigger. The root cause was "a misconfiguration of the PLC logic that did not verify both an undervoltage condition and physical breaker position".

AI root cause analysis pays off when you run many services, collect rich telemetry and deploy often. It helps little when one small service fails in a way a developer can read in a single log. It also fails when the cause left no signal the tool can read.

Figure 1. In the illustrative slow-board incident, telemetry located the change and showed the repeated query; which boards it would hurt took the code and the data.
Figure 1. In the illustrative slow-board incident, telemetry located the change and showed the repeated query; which boards it would hurt took the code and the data.
Get Started with Theresa for FREE

What Is AI Root Cause Analysis?

AI root cause analysis is the use of machine learning, causal models and language models to rank the likely causes of a failure. The American Society for Quality defines a root cause as "a factor that caused a nonconformance and should be permanently eliminated through process improvement."

Datadog's Watchdog RCA separates three things. It labels a root cause, a critical failure and an impact: the change that started the problem, the component that broke, and the other services it dragged down.

This article follows one illustrative example with invented numbers. A project-management SaaS ships board-api 3.8.0 at 13:52. The release replaces one batched comment count with a count query per card inside a loop. Engineers call this an N+1 query: one query per item instead of one for all.

This article covers software and IT systems, not industrial RCA for machines.

Get Started with Theresa for FREE

How Does AI Root Cause Analysis Work?

Most AI RCA products detect anomalies, group alerts and line up recent changes, as the process below shows. They differ in how they rank candidates, and each strategy fails differently.

Topology walks, used by Dynatrace and Instana, follow the service map, the record of which service calls which, from the symptom back to its source. They miss dependencies the map does not contain, such as a call no agent instruments.

Change correlation, as in Watchdog, ranks recent deploys and other state changes, such as a traffic spike, by how closely they precede the anomaly. Language-model ranking, as in Meta's system below, reads candidate changes and picks the likeliest. It writes a fluent explanation even for a wrong candidate.

IBM's Instana documentation says its algorithm "runs inferences every 10 minutes" and shows "up to three entities". When confidence is low, Instana "intentionally does not display the probable root cause".

Timing alone can make a change look guilty. A deploy at 13:52 and a slowdown at 14:05 sit close together. That makes the deploy a candidate that still needs proof.

Get Started with Theresa for FREE

Key Technologies Behind AI Root Cause Analysis

Anomaly detection and log clustering

Anomaly detection compares a metric with its own history. Good detectors model trends plus daily and weekly cycles, so Monday morning traffic does not raise an alert. They need weeks of history, so a new endpoint gets weak results. Log clustering does the same for text: parsers such as Drain3 group log lines into templates, so a new error pattern stands out.

Causal inference

Causal inference asks which upstream change explains a downstream anomaly. DoWhy's anomaly attribution scores how much each node in a causal graph contributed. It shows that a downstream node can look anomalous when it "merely inherits the high value" from its parent.

Language models and agents

In a June 2024 engineering post, Meta described an incident-response system that cut thousands of code changes to a few hundred. A Llama 2 model then picked the top five. In backtests on web-monorepo investigations, the right change appeared in the top five 42% of the time, and Meta warns that wrong answers can "mislead engineers".

RCACopilot, tested on a year of Microsoft incidents, predicts the root-cause category with accuracy up to 0.766, about three in four. Both results are self-reported on each company's own systems.

Get Started with Theresa for FREE

AI Root Cause Analysis Process

1. Detect against a baseline

At 14:05 an anomaly monitor flags GET /boards/{id}. Its p99 latency, the time that 99 of 100 requests beat, reaches 2,940 ms against a usual band of 410 to 640 ms.

2. Group alerts into one problem

Between 14:06 and 14:12, 37 alerts fire across board-api, the comments service and the Postgres primary. Alert grouping merges them into one problem, so one team is paged instead of three.

3. Line up recent changes

The tool reads the deploy marker for board-api 3.8.0 at 13:52. A deploy marker is an event your release pipeline sends when new code goes live. A tool that receives no deploy events cannot propose a release as the cause.

4. Localize and rank candidates

At 14:09 the RCA feature names the version change as the root-cause candidate and board-api latency on GET /boards/{id} as the critical failure. The on-call engineer rolls back at 14:31, and p99 returns to 520 ms by 14:38.

The slowest traces showed thousands of identical count queries, so the N+1 itself was visible. Telemetry could not say how many boards were large enough to hit it, or whether other endpoints in 3.8.0 had the same pattern. Each query took about 1.6 ms, so the slow-query log stayed empty.

Our production debugging guide covers the harder case, where nothing alerts and the evidence sits only in code and data.

5. Explain with code and data

The next day the engineer asks Waggle, Theresa's open-source, read-only auditor of code and data, which endpoints in 3.8.0 run a query per item inside a loop. Its Quick Ask answers with cited evidence; in this scenario only board_api/cards.py does. A Full Scan, with a read-only Postgres replica connected through MCP, proposed and measured hypotheses that included card-count skew, a missing index and connection-pool size.

The median board has 38 cards, but 212 boards hold over 2,000, all in 9 workspaces; the load-test fixtures had used only small boards. The scan finds an index on comments.card_id and reports "missing index" as ruled out. Waggle did not detect the incident, read logs or traces, or run code. The engineer joined slow trace IDs to board IDs and confirmed the slow loads came from those 9 workspaces.

Figure 2. The illustrative N+1 change added one query per card; no single query was slow, so only the card-count distribution explained why nine workspaces saw multi-second loads.
Figure 2. The illustrative N+1 change added one query per card; no single query was slow, so only the card-count distribution explained why nine workspaces saw multi-second loads.

The cause needed both the code change and a few very large boards. Record it the way PagerDuty's SRE Workbench structures a finding: probable cause, confidence, supporting evidence and "the alternatives considered".

Get Started with Theresa for FREE

Benefits of AI Root Cause Analysis

Grouping cuts noise. Dynatrace says its root cause analysis can "reduce the alert load by combining multiple connected anomalies into a single problem", as with the 37 alerts above. Grouping depends on an accurate service map, and a missing dependency splits one problem into two.

Ranking turns thousands of changes into a few, as Meta's ranker did with five. Datadog says the average Bits Investigation cost fell to about $4 and took about 2 minutes as of October 2026 (its own figures). A person still checks the top candidate before acting.

The tool also leaves a record. Each candidate arrives with the alerts, changes and queries behind it, which gives the postmortem a timeline to start from. The record holds only what the tool could read, so a team still adds what it learned elsewhere, such as the board sizes in the example.

Get Started with Theresa for FREE

AI Root Cause Analysis Use Cases

Microservice incidents are the main use. Watchdog, Instana and Dynatrace localize faults along a service map built from traces, so they need tracing coverage and miss calls nobody instruments. Change-induced failures in a large codebase come next, as in Meta's ranking of code changes in its web monorepo, a single repository that holds many projects. These need deploy or commit events and get harder when many changes land together.

The slow board is the change-induced, microservice case, which is why a version-change root-cause type caught it.

Cloud incident triage at scale is a third. RCACopilot sorts incoming Microsoft incidents into known root-cause categories, so the right team sees them first, but it needs labeled history and cannot name a category it has never seen. Business-metric drops suit causal models, such as a shop tracing a profit drop through ad spend, price and units sold. They need a causal graph someone drew, and a wrong graph gives a confident wrong answer.

Data incidents are the last, where the cause sits in a pipeline rather than a service. In one of our case studies, Theresa's team traced untrustworthy dashboards at an e-commerce company to upstream schema drift and rebuilt them on a storage layer that holds.

Get Started with Theresa for FREE

AI Root Cause Analysis vs Traditional Root Cause Analysis

QuestionTraditional RCAAI RCA
Who gathers the evidence?Engineers pull dashboards, logs and timelines by handThe tool queries telemetry and change events continuously
How are candidates found?5 Whys, fishbone diagrams, change analysis, Kepner-TregoeBaselines, grouping, change correlation, ranking models
What can it see?Anything a person can open, including code and dataOnly the sources it is connected to
How fast is the first answer?Minutes for an obvious suspect, such as a deploy; days for the postmortemMinutes for a ranked list; the postmortem still waits on proof (day 2 in the example)

AI gathers evidence faster; a sound conclusion still needs the same proof. Richard Cook's How Complex Systems Fail argues that "post-accident attribution to a 'root cause' is fundamentally wrong", because failures need several faults at once. In this article, root cause means the set of contributing causes a team commits to fixing, not a single culprit.

Google's postmortem practice asks for contributing causes for the same reason. The slow board had three: the N+1 change, a few very large boards, and load-test fixtures with small boards.

Get Started with Theresa for FREE

AI Root Cause Analysis vs AIOps

IBM defines AIOps as applying AI to IT service management and operational workflows. It lists what machine learning does inside it: "anomaly detection, root cause analysis (RCA), event correlation and predictive analysis."

AIOps is a platform category, and RCA is one function within it. RCA also exists outside AIOps, in error trackers such as Sentry Seer, incident agents such as PagerDuty Paige and causal libraries such as DoWhy. A useful test: a feature that only groups alerts and metrics is AIOps correlation, and one that names a change or a line of code with evidence is doing RCA.

Get Started with Theresa for FREE

Challenges of AI Root Cause Analysis

OpenRCA, presented at ICLR 2025, gave models 335 failures from three enterprise systems with over 68 GB of telemetry. The best setup with 2024 models, Claude 3.5 with an agent, solved 11.34% of cases. That was easier than production: the prompt listed possible causes, and cases where "no root cause could be identified from telemetry" were removed.

ORCA-bench, a 2026 benchmark from Cornell Tech and Traversal, an RCA-agent vendor, ran five frontier agents on a simulated microservice shop with the source code available. The best found the cause about one time in four when the report named the affected area, and one time in ten when it only said users saw problems.

With thin telemetry, good tools return nothing. In IBM's own validation of Instana, where telemetry was sparse, its feature "did not surface any faulty component". Watchdog RCA supports four root-cause types, so a cause outside that list cannot appear.

Revolut's technical overview of how that Google outage hit its systems shows the deeper limit. One server "was already offline before the power cut, but our monitoring hadn't alerted us", and its database-metrics instance ran in the affected zone. An RCA tool whose metrics store sits in the failed zone has nothing to rank, so keep that telemetry outside the failure domain.

Get Started with Theresa for FREE

Best Practices for Implementing AI Root Cause Analysis

Send deploy and version events with every release. Watchdog needs application performance monitoring (APM) with deployment tracking to name a version change. Host the telemetry that RCA reads outside the zones it monitors.

Require abstention and alternatives. Choose tools that can return no answer, as Instana does, and that list what they ruled out, as PagerDuty Workbench does. Meta filtered results by confidence and favored precision, because a wrong answer costs responders more than none.

Give the tool read-only access to code and data with scoped credentials. A replica or a read-only database role lets it test a hypothesis without risk to production.

Record contributing causes and fix each one. After the slow board, the team restored the batched count, added a large-board test fixture and built a per-workspace latency view.

Get Started with Theresa for FREE

How to Choose an AI Root Cause Analysis Tool

Start with evidence reach. List where the causes of your last ten incidents lived: infrastructure, a release, code logic or the data. Then check which of those sources each tool can read.

Next, check whether the tool abstains and shows ruled-out alternatives, and whether each claim links to a query you can re-run. Confirm access scope and data residency before a trial. Compare the billing unit with your incident volume, since vendors charge per investigation, per active developer or in usage credits.

Trial each tool on past incidents with known causes.

The table below is built from public documentation, not from our tests. The two broad telemetry platforms come first.

We make Waggle. We place it third because it reads a different kind of evidence: it tests hypotheses against code and stored data, where logic and data-shape causes live. The rest follow by how much of an incident's evidence they cover.

ToolEvidence it readsFits causes in
Datadog Watchdog RCA, Bits InvestigationAPM traces and metrics, deploy events, infrastructure metrics, log patternsServices, releases, infrastructure
Dynatrace Intelligence (formerly Davis AI)Causal topology from its agents, including code-level informationServices, infrastructure
WaggleCode; optional data through BigQuery or read-only MCPCode logic and data shape
Sentry SeerErrors, traces, logs, metrics and source codeApplication errors tied to code
PagerDuty PaigeEvents, runbooks, logs from connected tools, change events, GitHub code searchIncident response across tools
IBM InstanaTraces and topology; shows up to three entities, or noneServices, infrastructure
CorooteBPF telemetry and a service dependency graphSelf-hosted services
DoWhy, PyRCA (libraries)Any metrics you model as a causal graphBusiness and custom metrics

Waggle is open source on GitHub and runs on your own Anthropic key. It does not ingest alerts, logs or traces, so it is not an AIOps tool and does not replace one. A Quick Ask typically costs $0.30 to $1 and a Full Scan $5 to $30, with a cap that is not hard. It has no public accuracy benchmark yet.

Our AI debugging tools comparison profiles seven tools in more depth.

Get Started with Theresa for FREE

Conclusion

AI root cause analysis narrows a failure from thousands of signals and changes to a few ranked candidates. Detection, grouping, change correlation and causal models do the narrowing, and a person decides which candidate is the cause.

Pick the tool whose evidence reach matches where your causes tend to live: telemetry for infrastructure and releases, code and data for logic and data shape. Trust a tool more when it can report that it found no root cause and show what it ruled out.

More from the blog

All posts →
Enterprise AI

7 Best Enterprise AI Agent Platforms in 2026

Seven enterprise AI agent platforms ranked by who does the production work, where agents run, governance and how each one bills you.

Joena Zhang16 min read

See what AI can bring to your business.

Contact us