Reconstructing an incident across rotated logs The missing minute after a restart Dev is holding the ID of an order that failed just before a restart. The live checkout log starts with a cheery startup message. Its first timestamp is already too late to explain the customer's error. A known transaction normally leaves eighteen linked events in this example. Looking only at the current file finds seven. Eleven expected records lie outside that particular result. That does not yet tell Dev whether the events were lost. A log query has a source, a time range and a retention boundary. A new process can write to a different file or boot journal. Application journal in context Rotation can rename, compress or remove earlier segments. Joining only on wall time can misorder events when clocks differ. Boot IDs, request IDs and monotonic offsets give additional ordering evidence. A journal query can constrain boot, unit and time. Save the query and relevant identifiers alongside the timeline so another responder can reproduce the evidence. Compressed archives often contain the first symptom that has rotated away. Match their timestamps and sources to current segments and deduplicate any overlap. Rotation changes which file receives new events and may compress or remove old segments. Retention, reopen behavior and collector checkpoints determine investigation coverage. A worker receives order seven, writes a line, then exits. The restarted worker's first line appears in a new file. The old file may already have been compressed. Search both generations using the request identifier, and preserve the original timestamp and host with every matching record. A filename often describes rotation time rather than the precise event time. Reconstruct the overlap Record service, host, boot and request identities. Include the previous boot or rotated files when the interval crosses a restart. Order events using timestamps plus local sequence and request context. Check collector coverage before treating an empty interval as a healthy one. Write an event table with original time, source, boot identity, request identifier and sequence. Two files contain an identical completion event copied during rotation. Keep both raw records but mark them as one logical observation when counting outcomes. If the message lacks a stable event identifier, record how you judged it a duplicate. A reproducible timeline preserves ambiguity that a polished narrative can accidentally erase. Read the measurements Picture two lines one second apart on different machines. Their clocks differ by two seconds. Sorting the strings makes a tidy order, but neither line proves which machine acted first. A request identifier links related activity. A parent and child span or a per-process sequence can provide stronger evidence of causality. Eighteen events appear when all sources are present and only seven appear after the viewing scope changes. Before concluding eleven requests were lost, compare source coverage by worker, boot and file generation. A recovered event must match the same logical operation. Retaining two copies of one rotated line would inflate the apparent recovery. Is a missing line a missing failure? If a record appears in the old file and the retained journal, should the incident timeline show one failure or two? Look at stable event identity, host and sequence. A timestamp alone is weak evidence of a duplicate. If the two records describe separate attempts, keep them both and show their relationship to the request. If the archived segment never reached the collector, report a gap in evidence and compare an independent request counter. Check the competing explanation Log locations depend on distribution and application configuration. Many deployments send events to the journal or a remote collector, so an empty local directory is inconclusive. An application restarts during an outage and the current log starts after the first failures. Record the boot identity and deployment time, then search the previous segment and retained journal for the same request IDs. An empty query is consistent with missing collection as well as healthy behavior. Verify which hosts and intervals the query actually covers. Set a boundary on the evidence The old segment restores the eighteen linked events for the known transaction. Tail follows newly appended bytes. Following a descriptor versus a filename matters across rotation because the process writing and the process observing may move to different inodes. Dev can now mark which observations came before the restart and which came after. A tidy-looking empty interval only means something after its collection boundary is known. Apply the diagnosis A final outcome exists in the checkout database but the terminal log line is missing. Would you classify that purchase as failed? Look for a crash, collection delay or a dropped buffer first. Keep confirmed outcomes and cases without enough evidence in separate counts. Someone else should be able to reproduce which files supported each conclusion.