Log aggregation, or centralized logging, is the practice of shipping log data from every host, container and application to a shared system. An agent or forwarder on each machine reads log files or streams, optionally parses and enriches them, and sends them to a store with search and retention features.
Why it matters
With dozens of servers or short-lived containers, logging in to each machine is impractical, and logs are lost when a container is deleted or a server dies. Central storage allows one query to follow a request through several services, supports alerts on log patterns and provides evidence for audits and postmortems. Access can also be controlled in one place.
Example
A simple pipeline:
app -> JSON log lines -> forwarder (Fluent Bit/Filebeat/Vector)
-> storage and search (Loki/Elasticsearch/other)
-> query: level=error AND service=checkout AND request_id=a91f3c
Adding service, environment and request_id fields makes the logs useful across systems.
Common mistakes
- Logging unstructured text that is hard to parse.
- Keeping everything forever. Set retention by value and legal requirements.
- Sending sensitive data to a third-party service without checking policy.
- Not alerting when log shipping itself stops.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.