Prompier
ApprovedEngineeringdebugging

Log triage: group errors and find the likely cause

PL by Prompier Library ☆☆☆☆☆ New Version 1 · updated Nov 10, 2026
Reviewed by moderator Prompier Library on Nov 10, 2026. Checked for personal data, secrets, risky instructions and a clear license.

About this prompt

Groups noisy application or server logs into ranked error patterns, separates root causes from downstream symptoms and gives a short incident summary with next checks. Use when something broke and you have logs to read.

Prompt text

You are an on-call engineer doing a first-pass triage of logs. Be systematic and say how sure you are. Inputs - Logs (paste a representative slice, with timestamps): {{log_excerpt}} - What the system does and what changed recently: {{system_and_changes}} - When the problem started and what users noticed: {{symptoms_and_timing}} - A sample from a period that was healthy, if available: {{baseline_logs}} Steps 1. Check what was provided: size, time range, and whether it is a sample. State the limits of your conclusions. 2. Normalize messages by ignoring changing parts such as ids, timestamps and numbers, then group them into patterns. 3. For each pattern give count, first seen, last seen and whether it appears in the baseline. Rank by volume and by novelty. 4. Look for spikes and align them with the reported start time and recent changes. 5. Separate root-cause candidates from downstream symptoms: an early error in a dependency usually explains later timeouts. 6. State the most likely cause with your confidence (high, medium, low) and the evidence for it, plus one or two alternative explanations. 7. List the next checks, ordered by how quickly they can confirm or rule out each cause. Output format - Summary: 3 sentences - Table: pattern | count | first seen | last seen | new vs baseline | root cause or symptom - Likely cause and confidence - Next checks (numbered) - What the logs cannot tell us Quality bar - Count only what you actually see; do not extrapolate counts from a partial sample without saying so. - Never invent log lines, hosts or error codes. - Redact anything that looks like a secret or personal data before quoting.

Variables

4 variables
VariableWhat to enterExampleDefault
{{log_excerpt}}Paste a representative slice of logs with timestamps2026-03-04T10:02:11Z ERROR db timeout after 5000ms pool=main...—
{{system_and_changes}}What the system does and what changed recentlyOrders API; database connection pool size lowered yesterday—
{{symptoms_and_timing}}When the problem started and what users noticedSince 10:00 today, users see 'try again later' at checkout—
{{baseline_logs}}Optional: a log sample from a healthy period2026-03-03T10:02:09Z INFO order created id=8812 in 120ms...—

Try it

Live preview
Paste a representative slice of logs with timestamps
What the system does and what changed recently
When the problem started and what users noticed
Optional: a log sample from a healthy period
Your finished prompt
You are an on-call engineer doing a first-pass triage of logs. Be systematic and say how sure you are. Inputs - Logs (paste a representative slice, with timestamps): {{log_excerpt}} - What the system does and what changed recently: {{system_and_changes}} - When the problem started and what users noticed: {{symptoms_and_timing}} - A sample from a period that was healthy, if available: {{baseline_logs}} Steps 1. Check what was provided: size, time range, and whether it is a sample. State the limits of your conclusions. 2. Normalize messages by ignoring changing parts such as ids, timestamps and numbers, then group them into patterns. 3. For each pattern give count, first seen, last seen and whether it appears in the baseline. Rank by volume and by novelty. 4. Look for spikes and align them with the reported start time and recent changes. 5. Separate root-cause candidates from downstream symptoms: an early error in a dependency usually explains later timeouts. 6. State the most likely cause with your confidence (high, medium, low) and the evidence for it, plus one or two alternative explanations. 7. List the next checks, ordered by how quickly they can confirm or rule out each cause. Output format - Summary: 3 sentences - Table: pattern | count | first seen | last seen | new vs baseline | root cause or symptom - Likely cause and confidence - Next checks (numbered) - What the logs cannot tell us Quality bar - Count only what you actually see; do not extrapolate counts from a partial sample without saying so. - Never invent log lines, hosts or error codes. - Redact anything that looks like a secret or personal data before quoting.

Sample output

Summary: Errors began at 10:09, right after a configuration change. A database connection error appears first and most requests then time out. Pattern | Count | First | Last | New? | Type Connection refused to database | 412 | 10:09:02 | 10:41:15 | Yes | Root cause candidate Request timeout after 30s | 1,230 | 10:09:20 | 10:41:40 | No | Symptom Slow query warning | 38 | 09:50:11 | 10:02:00 | No | Unrelated Likely cause (medium confidence): the database stopped accepting connections at 10:09. Next checks 1. Look at database connection limits and restarts around 10:09. 2. Confirm what the 10:07 configuration change touched. Limits: only 40 minutes of logs were provided.

An example the author shared. Your result will differ.

Reviews

No written reviews yet. If you have used this prompt, tell others how it went.