Distributed Log Collection System 00:00:01 A cancellation is acknowledged before support can find it A railway service writes a cancellation log. Its local agent, durable ingestion log and searchable index progress independently. Follow a single event and identify what each acknowledgement actually promises. One line in a local file. It reads the file from its checkpoint and keeps a batch on disk. In this configured Kafka example, the write uses acknowledgements from the in-sync replica set under its minimum-replica policy. The agent saves its checkpoint. From here one lost zone does not lose the line. Each line has its id, so a repeat replaces itself. The offset moves after the write. The next refresh, within 5 s, shows the line. A durable append can let the producer move on before the search index refreshes. Choose retention and replication explicitly. Otherwise the pipeline may report success at one stage and still lose the observation before the next stage catches up. 00:01:01 A two-hour investigation should not scan a whole month Support knows the affected service and approximate departure time. Check access first, estimate the amount of data the query would touch, then dispatch only to relevant partitions. Time partitioning changes the cost of a vague request. level:ERROR for payment, from the last nine days. The access table knows which teams read which services. Two old days of a 1% service are 173 GB compressed. That is allowed. Everything for a year would become a job. Seven days span a hundred sixty-eight hourly indices in this example. A narrow hour changes the candidate set dramatically. A shard returns its top lines, not all matches. A slow shard is cut off after 5 s and the answer is marked partial. Recent lines appear first while the scan goes on. Merge shard results under a stable ordering and disclose partial results. A missing shard can look exactly like an innocent absence of errors if the interface presents an incomplete search as complete. 00:02:04 Alert on a sustained cancellation burst The operations team wants one useful page during a real disruption. Read from the stream with a rule scoped to a service and interval. A transient spike and a sustained crossing should not produce the same escalation. A reader of its own, with its own offset. An error line counts in a one-minute window by event time. 127 errors in a minute. The rule becomes pending, not firing. After the configured two-minute persistence period, the rule fires using a stable rule-and-service key. The notifier groups it with other alerts of this service and escalates if nobody answers. Two minutes below the second limit end it. Keep alert identity stable across workers and retries, use an explicit recovery condition, and test notification delivery. The underlying search index and the alerting pipeline can fail independently. 00:02:57 An hour of index outage becomes a backlog Stop only the search index for an hour. The ingestion log can still accept events until its durability and capacity limits intervene. A green producer acknowledgement therefore does not mean that a dispatcher can find a fresh log. Bulk calls fail. Indexers stop and wait, with growing pauses. Producers can continue when their independent durable intake remains available and appropriately provisioned. It reads Kafka itself. 360 GB wait. Search says: newest line one hour ago. 120 readers handle 600 MB/s. 100 arrive, so 500 reduce the backlog. At six hundred megabytes per second of recovery output and a continuing hundred megabytes per second of input, only five hundred megabytes per second drains old backlog. Account for both the outage interval and catch-up before setting retention. 00:03:55 Restart the shipper between write and acknowledgement Deliver two records and crash the shipper after storage accepts them but before it advances its checkpoint. A safe retry normally sends them again. Count the logical events rather than counting transport attempts. Two are acknowledged. The checkpoint is 9. The batch goes out. The checkpoint stays. Kafka has them, but the agent stops before saving. The agent starts at 9 and repeats both lines. Equal ids in the same hour replace each other. A deterministic document identity can absorb repeats under a suitable indexing operation and destination partition. Preserve that routing choice across retries. The result is a searchable cancellation record with a traceable path from disk to query.