Log and metrics investigation after an alert
The agent queries logs and metrics around an alert, correlates them with recent deploys and summarises a timeline. It suggests checks with the evidence for each likely cause. The on-call engineer decides.
What the agent does
- 1
Read the alert.
- 2
Query logs and metrics.
- 3
Correlate with deploys.
- 4
Summarise the timeline.
- 5
Suggest checks. → on-call decides
Enough to decide?
Documented in use- Required input
- No example input written yet
- Example output
- No example output written yet
- Stop condition
- wrong cause; show evidence
- Reviewer
- Reviewer to be named · About this entry
- Last run
- Not run by us yet
What it costs to run
A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.
Checked 2026-11-25 source
$0.001 to $0.22 per run · $0.011 per run with a mid-priced model
- Small, cheap model
- $0.001 per runPer 100 runs: $0.08
- Typical
- $0.011 per runPer 100 runs: $1.13
- Large model
- $0.22 per runPer 100 runs: $22.00
Free tiers and local models can bring this to zero while you test.
How we worked this out
- 5 model calls, one per step (at least 2)
- 2,000 input tokens per call
- 500 output tokens per call
- each call re-reads the earlier outputs
- no retries, no loops, no cached-input discount
- Longer inputs cost more; agents that retry or loop use more calls.
- Free tiers may cover small volumes: see free AI tokens.
- Local models have no per-token price but need your own hardware.
Works with
Tags
Before you start
- Access the agent needs
- cloud-console, chat
- Who approves
- on-call decides
- What to log
- every action it proposes and the decision taken
- When to stop
- wrong cause; show evidence
Why it is worth it
In an incident the first half hour goes on finding the right logs. An agent that builds the timeline lets the on-call engineer think.
Start this week
- Give the agent read-only access to logs, metrics and the deploy history.
- When an alert fires, ask it for a timeline and the likely causes, each with its evidence.
- The on-call engineer decides what to check and what to change.
Watch out for
The obvious cause is not always the real one. Ask for the evidence, not just the conclusion.
Measure this
Time to identify the cause.
About this entry
Documented in use Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1
What we checked
| Item | Result | Date | By | Source and note |
|---|---|---|---|---|
| Text and steps | Checked | 2026-11-25 | — | — |
| Human checkpoint and risks | Checked | 2026-11-25 | Reviewer to be named | — |
| Workflow run | Not checked yet | — | — | — |
| Cost estimate | Checked | 2026-11-25 | — | source · mid-priced model assumed |
| Tool links | Not checked yet | — | — | — |
| Outside evidence | Checked | 2026-11-27 | — | — |
Limitations
- An organisation has published that it runs this workflow. We link the source and the date we checked it.
- Results reported by a vendor or customer are their claims, not our measurements.
- Not checked yet: workflow run, tool links.
Change history
- Evidence label changed: Proposed pattern to Documented in use spec v2026-11-27.1
- Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
- Added to the catalogue spec v2026-11-25.1
Evidence
- Stream (Stream.io, Inc.) · Documented in use Same pattern: an agent queries logs, metrics, databases and code around a production alert, posts a cited root cause in the Slack thread, and a person decides the fix. Exact match except that deploy correlation is not stated. The post does not say the agent links the alert to recent deploys (step 3 of this use case). The company describes its own system, and nothing was measured independently. The agent never takes an outward action. · source · 2026-11-27
- Bolna · Adjacent pattern Close: a read-only agent queries code, logs, traces and databases for an incident and replies in Slack with a root cause and fix steps. Differs: no decision step is described (no on-call engineer or approver; users are mainly support and customer-success staff who ask the bot), and it checks what is deployed rather than correlating a failure with recent deploys. No decision or approval step is described: fix steps stay recommendations and users are mainly support and customer-success staff, not on-call engineers. The agent reads deployment state (a daily Kubernetes manifest dump; image tags are Git SHAs; each Datadog span carries the commit it ran) but is not described as correlating a failure with recent deploys. Company's own figures. · source · 2026-11-27
Spec versions
- v2026-11-27.1 · Evidence label changed: Proposed pattern to Documented in use
- v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
- v2026-11-25.1 · Added to the catalogue
Run it with AI
Pick the AI you already use.
You are helping developer. Goal: Log and metrics investigation after an alert. The agent queries logs and metrics around an alert, correlates them with recent deploys and summarises a timeline. It suggests checks with the evidence for each likely cause. The on-call engineer decides. Work through these steps and show your result for each: 1. Read the alert. 2. Query logs and metrics. 3. Correlate with deploys. 4. Summarise the timeline. 5. Suggest checks. Tools or data I can give you: cloud-console, chat. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: on-call decides. Watch for: wrong cause; show evidence.
Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
Nothing happened? The Claude Desktop app (Mac, Windows, or Linux, where it is still in beta) may not be installed. Use the copy button instead.
ROLE: Assistant for developer. TASK: Log and metrics investigation after an alert. SUMMARY: The agent queries logs and metrics around an alert, correlates them with recent deploys and summarises a timeline. It suggests checks with the evidence for each likely cause. The on-call engineer decides. PROCEDURE: 1. Read the alert. 2. Query logs and metrics. 3. Correlate with deploys. 4. Summarise the timeline. 5. Suggest checks. HUMAN CHECKPOINT: on-call decides GUARDRAILS: wrong cause; show evidence RULES: ask when inputs are missing; never invent facts; cite where each fact came from.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "incident-log-investigator-0076",
"goal": "Log and metrics investigation after an alert",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"cloud-console",
"chat"
],
"plan": [
"Read the alert.",
"Query logs and metrics.",
"Correlate with deploys.",
"Summarise the timeline.",
"Suggest checks."
],
"human_in_the_loop": "on-call decides",
"guardrails": "wrong cause; show evidence",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"trigger": "When a new item arrives",
"steps": [
{
"n": 1,
"do": "Read the alert."
},
{
"n": 2,
"do": "Query logs and metrics."
},
{
"n": 3,
"do": "Correlate with deploys."
},
{
"n": 4,
"do": "Summarise the timeline."
},
{
"n": 5,
"do": "Suggest checks."
}
],
"connects": [
"cloud-console",
"chat"
],
"approval": "on-call decides",
"stop_on": "wrong cause; show evidence"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "incident-log-investigator-0076",
"goal": "Log and metrics investigation after an alert",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"cloud-console",
"chat"
],
"plan": [
"Read the alert.",
"Query logs and metrics.",
"Correlate with deploys.",
"Summarise the timeline.",
"Suggest checks."
],
"human_in_the_loop": "on-call decides",
"guardrails": "wrong cause; show evidence",
"output": "a draft for human review"
}Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping developer. Goal: Log and metrics investigation after an alert. The agent queries logs and metrics around an alert, correlates them with recent deploys and summarises a timeline. It suggests checks with the evidence for each likely cause. The on-call engineer decides. Work through these steps and show your result for each: 1. Read the alert. 2. Query logs and metrics. 3. Correlate with deploys. 4. Summarise the timeline. 5. Suggest checks. Tools or data I can give you: cloud-console, chat. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: on-call decides. Watch for: wrong cause; show evidence.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping developer. Goal: Log and metrics investigation after an alert. The agent queries logs and metrics around an alert, correlates them with recent deploys and summarises a timeline. It suggests checks with the evidence for each likely cause. The on-call engineer decides. Work through these steps and show your result for each: 1. Read the alert. 2. Query logs and metrics. 3. Correlate with deploys. 4. Summarise the timeline. 5. Suggest checks. Tools or data I can give you: cloud-console, chat. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: on-call decides. Watch for: wrong cause; show evidence.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "incident-log-investigator-0076",
"goal": "Log and metrics investigation after an alert",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"cloud-console",
"chat"
],
"plan": [
"Read the alert.",
"Query logs and metrics.",
"Correlate with deploys.",
"Summarise the timeline.",
"Suggest checks."
],
"human_in_the_loop": "on-call decides",
"guardrails": "wrong cause; show evidence",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "incident-log-investigator-0076",
"goal": "Log and metrics investigation after an alert",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"cloud-console",
"chat"
],
"plan": [
"Read the alert.",
"Query logs and metrics.",
"Correlate with deploys.",
"Summarise the timeline.",
"Suggest checks."
],
"human_in_the_loop": "on-call decides",
"guardrails": "wrong cause; show evidence",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
At a glance
- For
- developer
- Industry
- software
- Autonomy
- assist
- Difficulty
- Works with
- Steps
- 5 · 1 human checkpoint
- Runs as
- event-triggered
- Data touched
- read-only
- Needs approval
- on-call decides
- What it costs to run
- $0.011 per run with a mid-priced model
- Evidence
- ID
UC-0076
Compare routes for this job
Share this comparison| For this job | n8n | Claude | ChatGPT |
|---|---|---|---|
| What you do by hand | Build and test the workflow once. After that it runs on each new item, and you do the human checkpoint this use case names (approve, edit or decide) before anything goes out. | Paste or attach the input each time, check the answer, and carry the result to where it goes yourself. | Set up the assistant once with your instructions and files. Then paste or attach each new input, check the answer and carry the result on. |
| Human checkpoint | on-call decides | ||
| Typical API cost (same for every route) | $0.011 per run with a mid-priced model checked 2026-11-25 · pricing source | ||
| Learning curve | Terminal | Point and click | Point and click |
| Price model | free | free tier | free tier |
| Where your data goes | It runs where you install it. Your workflow data goes to the apps and models it connects to. By default n8n also sends anonymous usage data to its makers; our beginner guide switches that off. | What you type and upload goes to Anthropic's servers and is handled under its terms. Check its data settings before you use real work data. | What you type and upload goes to OpenAI's servers and is handled under its terms. Check its data settings before you use real work data. |
| Before you start | Docker or a similar tool on your computer, or a server. Our tested examples have a beginner guide. | An account on the website. The free plan is enough to try it. | An account on the website. The free plan is enough to try it. |
| Evidence for this route | Proposed pattern | Proposed pattern | Proposed pattern |
| Open | Open in run panel Tool page | Open in run panel Tool page | Open in run panel Tool page |
Where to go from here
All developer use casesSimilar work
These use cases do the same kinds of work as this one. Each card shows what they have in common.
Themes in open comments
The agent clusters open comments from reviews, tickets and surveys, labels the themes, counts them by period and quotes examples. You validate the themes.
Open survey answers into themes
The agent groups open survey answers into themes, counts and quotes them and compares them with the last wave. It shows examples so you can check the themes.
Where is this behaviour implemented?
The agent searches the repository, traces the call path and explains it with a diagram and links to the exact lines. You verify the trace.
Same kinds of tools, a different job
These use cases connect to the same kinds of tools as this one, so part of your setup carries over.
Accounts and device for a new joiner
From the HR record, the agent creates accounts, assigns groups from role templates and orders a device. It sends a welcome message with setup steps. The manager approves access.
Password reset by chat with identity check
The agent verifies the user with a second factor, resets the password, forces a change at next login and logs it. Strict verification and rate limits guard against account takeover, and a person steps in if verification fails.
Alert noise reducer
The agent groups related alerts by cause, suppresses duplicates and pages once, keeping a full trail. It samples suppressed alerts so a new fault is not hidden. On-call tunes the rules.