Code RoomCentralized log aggregation
HardPrep Room Coding #3280

Centralized log aggregation

System designDatabases & SQLStorage & CDNSenior–Staff~40 min

Design a centralized log aggregation system ingesting 2TB/day of application logs (peak 60MB/s) from 10,000 containers, with structured JSON and free-text lines mixed. Most queries are 'tail the last 15 minutes for service X' or 'grep this error string across service Y for the last 24h'; a minority are 30-day forensic searches. Cost matters more than millisecond query latency. Design ingest, storage, indexing, and how you make 30-day grep affordable.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify4:30 left
Estimate4:30 planned
Design13:30 planned
Deep dive10:30 planned
Failure7:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.