When Containers send the output to stdout or stderr, it needs to be logged. This is useful to monitor errors and events and also to maintain the history of the Container application. With Containers, there are some special challenges with respect to logging:
- Typically, Containers run a microservice, and we don't want the logging process running inside a container as this defeats the Container model.
- With microservices, a single application can be split into multiple containers running across different hosts. It is necessary to collate logs from multiple containers to make meaningful conclusions. This enforces the need to have a central logging server rather than doing container monitoring on the host where the container is running. ...