Design a Log Search Service for On-Call Engineers During Incidents
Last updated: November 29, 2026
Quick Overview
Design a system that ingests application logs from Meta's server fleet and lets an on-call engineer search the last few hours by service, host, severity, and free text within seconds.
Meta
November 29, 20260
0
0 solved
Design a system that ingests application logs from Meta's server fleet and lets an on-call engineer search the last few hours by service, host, severity, and free text within seconds.
Fleet-scale logging is a classic infrastructure design at Meta. The interviewer looks for a clear split between hot recent data and cold history, an indexing strategy that keeps costs sane, and a query path that stays fast during an incident when everyone searches at once.
What the Interviewer Expects
- Estimate ingest volume and retention
- Design a pipeline with buffering and backpressure
- Pick an index strategy (full inverted index vs time-partitioned scans)
- Support fast filters on structured fields
- Plan for the incident load spike
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- Would you build a full inverted index on every log line?
- How do you handle a service that suddenly logs 50x more?
- How do you keep sensitive user data out of logs?
- How would you support live tail?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: ingest structured logs (timestamp, service, host, region, severity, message, request id); query by time range plus filters plus substring or token search; live tail.
**Non-functional:...
High-Level Design
- Host agent tails files and the logging library, batches, compresses, and sends to a durable log bus partitioned by service.
- Indexer workers consume, build per-partition segments (for e...