Design centralized logging: agents or apps ship structured logs to an ingest API, which buffers, indexes, and stores them for search and dashboards. Support retention tiers, full-text search, and live tail for debugging.
Functional requirements
- Ingest JSON logs with timestamps, level, service, trace id
- Search with query language over fields and full text
- Stream live tail for a filter
- Archive cold logs to object storage with reduced index
Non-functional requirements
- High ingest throughput with backpressure
- Multi-tenant isolation and quotas per service
- Cost-aware retention and indexing cardinality limits