developer· software

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.

assistAn afternoon5 steps

What the agent does

  1. 1

    Read the alert.

  2. 2

    Query logs and metrics.

  3. 3

    Correlate with deploys.

  4. 4

    Summarise the timeline.

  5. 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
Permission
on-call decides
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.08qwen3.7-flash (0-32K) · Alibaba Model Studio (Qwen)
Typical
$0.011 per runPer 100 runs: $1.13Mistral Large · Mistral
Large model
$0.22 per runPer 100 runs: $22.00Claude Fable 5.2 · Anthropic

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

list API prices in USD per 1M tokens, checked 2026-11-25; one pass through the steps

5 model calls · 15,000 input tokens · 2,500 output tokens

  • 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.

low = cheapest, mid = median, high = dearest of the 36 paid models with a confirmed price in our table; models without a confirmed numeric price are left out

Browse provider prices

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 Reviewer to be named
Documented in use Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1 Reviewed by Reviewer to be named

What we checked

Each part of this entry, whether it was checked, when, and by whom.
ItemResultDateBySource and note
Text and stepsChecked2026-11-25——
Human checkpoint and risksChecked2026-11-25Reviewer to be named—
Workflow runNot checked yet———
Cost estimateChecked2026-11-25—source · mid-priced model assumed
Tool linksNot checked yet———
Outside evidenceChecked2026-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

  1. Evidence label changed: Proposed pattern to Documented in use spec v2026-11-27.1
  2. 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
  3. Added to the catalogue spec v2026-11-25.1

Full history

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.

Least setupMost control

{
    "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.

The prompt is built in your browser. It reaches an AI only when you paste it in or open it there.What are these forms?

At a glance

Industry
software
Autonomy
assist
Difficulty
An afternoon
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
ID
UC-0076

Compare routes for this job

Share this comparison

Log and metrics investigation after an alert · UC-0076 · 3 of 3 routes for this job. Each cell is dated and sourced where we have a check. This is not a winner column.

Compare routes for this job
For this jobn8n
No-code automation
Claude
Chat assistants
ChatGPT
Custom assistants
What you do by handBuild 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

Same figure for every route above — subscription prices are in the row below.

Typical tier: Mistral Large · Mistral

checked 2026-11-25 · pricing source

Learning curveTerminalPoint and clickPoint and click
Price modelfreefree tierfree tier
Where your data goesIt 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 startDocker 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 routeProposed patternProposed patternProposed pattern
OpenOpen in run panel Tool pageOpen in run panel Tool pageOpen in run panel Tool page

Comparison version 2026-11-27.2 ·

Where to go from here

All developer use cases

Similar work

These use cases do the same kinds of work as this one. Each card shows what they have in common.

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.

same tools: team chat · cloud admin

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.

supervisedit · $0.011/run
same tools: team chat · cloud admin

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.

autonomousit · $0.011/run