Log aggregation
Centrally collecting and indexing logs from all services so they can be searched and analyzed together, rather than per-machine.
In a distributed system, a single request may traverse twenty microservices; its log output is scattered across twenty servers. Log aggregation (classically the ELK stack—now also Datadog, Splunk, Loki, and others) pools all logs into one queryable layer. You can search by request ID and follow the trace through the entire system. Log volumes can balloon—a high-traffic API may generate gigabytes of logs per second—so sampling or filtering strategies are necessary to control cost. Without log aggregation, debugging means SSH-ing to an individual server and grepping its logs, which is crippling in cloud environments where the server may be replaced in an hour. Log aggregation is a prerequisite for production debugging at scale.
Good log aggregation transforms chaos into clarity; poor instrumentation (too little, too cryptic) makes even the best aggregation tool useless.