Incident analysis across services
Give Claude Fable 5 the logs from each service around the incident and have it build one timeline and name the first failure. Confirm the root cause in your monitoring before closing the incident.
Example: What failed first in this outage?
Material
- api-gateway
- 14:02:10 502 upstream timeout (orders) · 14:02:11 502 upstream timeout (orders)
- orders
- 14:01:58 db pool exhausted (max 20) · 14:02:05 request timeout after 5000 ms
- billing-worker
- 14:01:40 started nightly reconciliation job, 40 parallel queries against orders DB
PromptUsing the logs from the three services, build a timeline and say which failure started the outage.
Sample answer · written by hand to show the reasoning
14:01:40 billing-worker starts a reconciliation job with 40 parallel queries on the orders database. 14:01:58 the orders service runs out of database connections. 14:02:05 its requests start timing out. 14:02:10 the gateway returns 502s. The first failure is the reconciliation job using the database during traffic; limit its concurrency or move it to a replica, then confirm the connection count on your database dashboard.