When to use it
Use this prompt during or after an outage, when you have thousands of log lines and need to know where to look first. It also helps when writing a post-incident review, because the timeline and quoted evidence become the backbone of the report.
During a live incident, restoring service comes first: if a recent deploy is the obvious suspect and rolling it back is safe, do that, then use the prompt to understand what happened. The analysis is only as good as the excerpt you provide, so include lines from every service on the request path, not just the one that showed the error.
How to customize it
- [SYMPTOM] anchors the analysis on what users actually experienced.
- [TIMES] with a time zone prevent confusion between UTC server logs and local reports.
- [SYSTEM OVERVIEW] lets the model reason about how a failure in one service shows up in another.
- [RECENT CHANGES] are the most common cause of incidents, so list every deploy and config change you know about.
- [LOGS] should include a few minutes before the start. Remove tokens, emails and other personal data first.
Why it works
Incidents are full of loud symptoms: retries, timeouts and error spikes in every downstream service. Asking for the earliest anomaly and separating symptoms from causes pushes the analysis upstream, where the fix usually is.
Ranked hypotheses with evidence for and against mirror good debugging practice and avoid locking onto the first plausible story. Requiring quoted lines makes every claim checkable, and the explicit permission to say “insufficient data” reduces confident guesses. The suggested next checks keep the investigation moving.
Tips and variations
- Paste logs from several services in separate labelled blocks so the model can correlate them.
- Feed back the result of each check and ask for an updated ranking.
- If your logs are huge, filter by time window and severity first, or let an assistant that can run code parse the files.
- For bugs you can reproduce, switch to the debugging assistant prompt.
- Read our guide on LLM observability if the incident involves an AI feature.