How do I rebuild a trace from logs?
Short answer: Collect logs around one failing request, group by request or trace ID, then order the events by timestamp to find the first error and downstream failures.
Steps
- Paste the logs that surround one failing request or incident window.
- Group lines by trace ID, request ID, correlation ID, or service name.
- Sort the events by timestamp and mark the first error or warning.
- Separate the initiating failure from retries, timeouts, and downstream symptoms.
Use debugtools
Open the Log Trace Rebuilder to run this workflow in the browser.
Related tools
Stack Trace ExplainerOpenTelemetry Trace ViewerError Tracker