# Log Aggregation

> Putting the logs from many machines in one place to search.

**Field:** Infrastructure  
**Category:** Monitoring & Observability  
**Also known as:** Centralized Logging, Log Management, Log Shipping

## Think of it like

Think of it like putting every class's notes in one big binder. Then you can search them all at once.

## Definition

Log aggregation gathers logs from many servers and apps into one place. A small agent on each machine sends its log lines to a central store. There, the lines can be searched, filtered and kept for a set time. One search can follow a user's request across many servers. Without it, someone would have to log in to each machine and read its files one by one.

## Example

Jack's app runs on 12 servers. A customer reports an error at 14:02, and one search across all the logs finds the failing line on server 7.

## Why it matters

With many servers, logs left on each machine are as good as lost. One store you can search turns them into answers.

## Common mistake

Keeping every log line forever. Storage costs climb fast, so set how long each kind of log is kept.

## Three principles

- **Many sources.** Every server sends its lines.
- **One place to search.** Search all logs at once.
- **Kept for a set time.** Old lines are dropped on a schedule.

## Related terms

- [Logging](https://learn.benibix.com/term/infrastructure/logging)
- [ELK Stack (Elastic Stack)](https://learn.benibix.com/term/infrastructure/elk-stack)
- [Log Level](https://learn.benibix.com/term/infrastructure/log-level)
- [Telemetry](https://learn.benibix.com/term/infrastructure/telemetry)
- [Observability](https://learn.benibix.com/term/infrastructure/observability)

![An app box on the left with instrumentation code inside. Logs, metrics and traces flow right to a collector, then into stores: a log store searched in one place and a metrics store read by Prometheus through an exporter page. Dashboards and alerts sit at the far right.](https://learn.benibix.com/diagrams/inf4-telemetry-pipeline.svg)

---

Source: https://learn.benibix.com/term/infrastructure/log-aggregation
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
