Topic 1 of 4 · 4 min read
Incident triage with an AI assistant
Goal: Use an agent to turn alerts, logs and recent deploys into ranked hypotheses, and check each against the evidence.
An AI assistant is best used during triage as a fast reader that proposes ranked hypotheses, and every hypothesis must be checked against evidence before anyone acts on it.
Check yourself · 1 of 3
During triage you ask an assistant for likely causes. What makes a hypothesis trustworthy enough to check first?
Why it matters
At 02:10 an alert fires. You have a dashboard, 40,000 log lines, a chat channel and a list of recent deploys. A model such as Claude, ChatGPT, Gemini or Copilot can read all of it in seconds and say what stands out. That saves minutes. But a model also guesses. It will name a cause with full confidence even when the logs do not show it. In an incident, a wrong cause costs time, because the team chases it.
How to do it
- Give it the evidence, not your theory. Paste the alert text, a time-bounded slice of logs, the error rate graph values and the list of deploys and config changes from the last day. Say what you do not know.
- Ask for hypotheses, not a verdict. "List up to four possible causes, ranked. For each, quote the exact log line or metric that supports it, and name one check that would disprove it."
- Demand quotes. A hypothesis with no quoted line is a guess. Open the line yourself and confirm it exists and says what the model claims.
- Run the disproving check first. It is cheaper to rule a cause out than to prove it. Run a read-only query, then update the ranking.
- Keep a human owner. The incident lead decides which hypothesis to pursue. The assistant does not.
Before and after
Weak prompt:
Checkout is failing. Here are some logs. What is wrong?
The reply is a confident single cause, "database connection pool exhausted", with no evidence.
Better prompt:
Alert: checkout 5xx rate 18% since 02:04 UTC. Evidence below: logs 02:00-02:15,
deploys today (api v412 at 01:55), no infra changes. List up to 4 hypotheses ranked
by likelihood. For each: quote the supporting log line, and give one read-only check
that would rule it out. Say "no evidence" where there is none.
Now you can see that the top hypothesis, the 01:55 deploy, is backed by a quoted error that began at 02:04, and the pool theory has no quote.
What goes wrong
- Anchoring. You hint at a cause and the model agrees with you. Leave your theory out of the first prompt.
- Invented evidence. A model can produce a plausible log line that is not in your data. Always search your logs for the quoted text.
- Truncated input. Long logs get cut, and the model answers about the part it saw. State the time window and size you pasted.
- Correlation as cause. A deploy before the alert is a suspect, not a proof. The check decides.
Examples
A quote that does not exist
The assistant says: "The log shows ConnectionPoolTimeout after 30000ms at 02:06." You search the pasted logs and the string is not there. The real error is HTTP 502 from payments-gateway. The model filled a gap with a typical error. Discard that hypothesis and re-ask using only quoted lines.
Ranking by evidence
1. Deploy api v412 (01:55). Evidence: first NullPointerException at 02:04 in
CartService.total(), line quoted. Check: does v411 show it? (read-only: query logs for v411)
2. Payments gateway slowness. Evidence: none quoted. Check: gateway status page.
3. Traffic spike. Evidence: request rate flat in the pasted graph. Check: ruled out.
The ranking is useful because each line is tied to something you can verify in a minute.
Key points
- Give the assistant raw evidence (alerts, a bounded log slice, recent deploys) and keep your own theory out of the first prompt.
- Ask for ranked hypotheses with a quoted supporting line and one disproving check for each.
- A hypothesis without a quote you can find in your own logs is a guess, however confident it sounds.
- Run the cheap, read-only check that rules a cause out before you act on the top-ranked cause.
- The incident lead owns the decision; the assistant only reads and proposes.
Common mistakes
- Pasting your suspected cause into the first prompt, so the model agrees instead of examining.
- Accepting a quoted log line without searching for it in the real logs.
- Treating a deploy shortly before the alert as proof of cause.
- Pasting a huge log and not saying which time window or how much was cut.
Check yourself · 2 of 3
An alert fired at 02:04. The assistant ranks "recent deploy at 01:55" first. What is the best next step?
Check yourself · 3 of 3
You pasted 2 MB of logs and the reply names a cause from a line you cannot find. What most likely happened?
Practice items, not counted towards your mastery.
Start here
- Postmortem culture: learning from failure (Google SRE book) (opens in a new tab)BookFree
Why postmortems must be blameless, what a good one contains and how to keep a learning culture.
- Managing Incidents (Google SRE book) (opens in a new tab)BookFree
Roles, a live incident document and clear handoffs during a real incident.
- Incident Response Guide (PagerDuty) (opens in a new tab)DocsFree
A practical guide to incident roles, severity and communication.