Skip to content

Root cause

The Root cause tab of an incident shows its latest analysis. From top to bottom:

  1. the headline and Analyze again;
  2. the cause chains that code found before the AI read anything;
  3. the root-cause analysis the AI wrote;
  4. Send the RCA and the Fix plan;
  5. the evidence the analysis rests on.

A new incident is analyzed by itself about a minute after it opens. Press Analyze again to run it once more, for example after more alerts have joined the incident. The headline then says how many new alerts arrived since the last analysis. An incident that was never analyzed shows No analysis yet and an Analyze button.

While it runs, the headline reads Collecting the evidence (from MSN and the other sources) and then Writing the root cause analysis. The tab refreshes by itself every few seconds until it is done. Under the headline you see when it was analyzed and who started it (“when the incident opened” for the automatic run).

Each run is stored. The tab shows the latest one.

The top of the analysis: the title with its category and component, the probable cause on a blue card with its confidence, the impact and the owner

The top of an RCA from the demo.
  • The title names the problem, with its category and the component under it, for example database · PostgreSQL on db-core-01.
  • Probable cause (the blue card) is the AI’s statement of the cause, with a confidence (high, medium or low) and the reason for it. The small chips after the statement are the evidence it cites (see Citations). The confidence is graded by code from that evidence: when the AI rated itself differently, the card says AI said high, and a block under the reason says what the grade rests on and why it is not higher. See How confidence is graded.
  • Impact says what was affected. Owner names the team that should act, and why.
  • AI summary is the RCA in a sentence or two.
  • Suggested fix lists the steps in order. Each step has a kind (for example command, configuration or verification), a risk (low, medium or high), the host it is for, and its command when there is one. Risky commands carry a warning. These steps are suggestions: nothing runs until an administrator approves a fix plan.

Suggested fix: three numbered steps, each with its kind, risk and the command

Suggested steps with commands. Each step cites the evidence it rests on.
  • Hypotheses the AI weighed lists each possible cause (H1, H2, …) as Confirmed, Likely or Ruled out, with the evidence for and against it. The one the probable cause states is marked the probable cause. A rival marked ruled out without evidence of its own says that the grade does not count it.
  • Leads from people gives the AI’s verdict on each hint and answer it read, and Questions for the on-call asks what only a person can answer. A Hints for the next analysis box follows. See Hints and questions for the on-call.
  • Timeline (UTC) lists what happened, in order, each event with its evidence.
  • What the evidence shows lists the findings: facts, each with its evidence.
  • Related past incidents links to earlier incidents with the same cause, when the AI found any.
  • How the AI investigated lists every question the AI asked the sources while it wrote the RCA (see When the AI asks for more), in order: the tool, its status, how many records came back, why the AI asked and what it asked for. When it asked for nothing, it says so.
  • Blind spots lists what the analysis could not see, by area: logs, metrics, changes, topology, traces and other. Each says whether code noted it (a source that failed or hit its limit, no service topology, evidence left out to fit) or the AI did (for example no record of recent deployments). An RCA written before blind spots shows What the analysis could not establish (amber) instead.
  • The footer names the AI model and the time it wrote the RCA. It also says if text was masked, and if citations to evidence that does not exist were removed.

Timeline (UTC) and What the evidence shows, each line with its evidence chips

The timeline and the findings.

Every claim in the RCA cites the evidence it rests on, as small chips: A for alerts, M for metric series, P for log patterns and E for example records. Hover over a chip to see what it stands for. The server checks every citation against the evidence, so the AI cannot cite something that was not there. Accounts that may query the sources can select a chip to open the item in its tool or copy its query (see Evidence links).

  • A check mark means the claim rests on verified, tamper-evident audit records: every record it cites passed MSN’s integrity check.
  • A warning mark means it cites records that failed their integrity check. Treat that claim with care.
  • unsupported means the AI cited no evidence for the claim.

Before the AI reads anything, code looks for the order in which things went wrong:

  • It compares the incident’s window with the same window a day earlier and the hour before (the baseline).
  • It dates each module’s anomaly: a metric leaving its usual band, a threshold crossed, or a log line that is new or more frequent than in the baseline.
  • It links anomalies that share a host or service, or that sit within three hops of each other in the service topology, as long as the earlier one was still going on or ended at most ten minutes before.
  • It retains the best three chains, C1 to C3. A chain scores higher when it starts earlier, starts upstream, shows a bigger change, and explains more of the incident’s alerts.

Cause chains C1 and C2, each starting with a new log line on db-core-01, with its time, module, host and the log line

Cause chains on an incident analyzed without a baseline and without an AI report, so they have no verdict.

Each chain card shows:

  • how it starts, for example Starts with a new critical log line on db-core-01;
  • how many of the incident’s alerts it explains, and its score (hover for the breakdown);
  • its steps in time order: the time (UTC), the module, the host and service, and what changed (“rose from 3 to 950”, “new error log line”). Between steps it says why they are linked and how long one followed the other. A step marked began before the window started in the hour before the incident’s window. Long chains fold behind Show N more steps;
  • the AI’s verdict when there is a report: Confirmed, Partly confirmed or Rejected, with the AI’s reason and its citations. No verdict means the AI did not judge the chain; the RCA then lists that as a gap.

The chains show even when no RCA was written, for example when the AI is not set up. They are found by code alone, the same way every time.

If nothing stood out against the baseline, or no anomaly led to another, the section says so instead of showing chains.

No root cause analysis, only the evidence was collected: the AI service failed (RateLimitError)

The AI could not be reached, so only the evidence and the cause chains are shown.

No root cause analysis — only the evidence was collected means the run finished but the AI wrote nothing. The amber box says why, for example:

Message Meaning
AI is not set up (OPENAI_API_KEY), so only the evidence was collected. No AI key is configured, or AVACOM_RCA_AI=false. See AI model and key.
The AI service has no API key (Settings → AI), so only the evidence was collected. The tenant’s provider needs a key and none is saved. Enter it in Settings → AI.
The saved AI settings cannot be read: … / The AI service’s API key could not be read: … The tenant’s settings or key are damaged or missing; its AI stays off until an administrator saves them again.
the AI service failed (RateLimitError) The AI provider refused the request: too many requests, or no credit left on the account.
The limit of N AI analyses per hour is reached; analyze again later. The hourly limit was reached.
the AI declined to write the analysis / the AI’s answer could not be read The model refused or answered in the wrong shape. Try again, or a different model.

The analysis failed means the run itself stopped with an error. Press Analyze again. See Troubleshooting.

The bottom of the tab shows what the analysis rests on.

Evidence: the window, tiles for records, sources, metric series and event-log patterns, and the hosts and services asked about

The evidence summary: 261 records from MSN, 8 metric series and 11 log patterns.
  • The window: from an hour before the first alert to five minutes after the last, and how many records in it were verified as untouched.
  • Records, Sources, Metric series and Event-log patterns: how much came back.
  • Hosts, Services and Users that were asked about, and one badge per source with the records it returned. A source that did not answer is named here.
  • What this evidence cannot show: the limits, for example a source that returned as many records as asked for (there may be more), or a module the baseline had nothing from.

Performance metrics (UTC) shows each metric series as a small chart, with its module, host and service, its first and last value, its peak, and when it crossed its threshold.

Performance metrics: eight series such as db.commit_time_ms and volume.used_pct, each with a sparkline

Metric series from the modules’ performance logs.

Event-log patterns groups similar log lines. Each pattern shows when it was first and last seen, how many times, its level, whether it is verified, and its module and host. Open a pattern to see its example records.

Event-log patterns P1 to P4, each with times, count, level, verified mark, module and the pattern text

Log patterns; numbers and ids in the lines are replaced by placeholders such as <num>.

Before the evidence is stored or sent to the AI, credentials and personal data are masked: passwords, keys and tokens wherever they appear, card numbers, IBANs and e-mail addresses. Host names, services, user names, addresses, times and messages stay, because the analysis needs them.

While it writes the RCA, the AI may ask for more evidence: logs or metrics for a host or service, what a service depends on, or the RCA of a past incident it was shown. It can ask in at most 3 rounds of 4 queries each. It may only ask about the incident’s own hosts, services and users, what those services depend on (up to three hops down the service topology), the services that call them directly, and the hosts that hints name. What it fetched is added to the evidence with a D id. When it hits a limit, the RCA says so under What the analysis could not establish. See AI model and key for the limits and how to turn this off.