Cluster-level logging

193

In a cluster, logs should have a separate storage and lifecycle independent of nodes, pods, or containers. This concept is called cluster-level logging.

Stuff you wanna know:

  1. The cluster-level logging mechanism is responsible for saving container logs to a central log store with search/browsing interface.
  2. Cluster-level logging architectures require a separate backend to store, analyze, and query logs.
  3. Kubernetes does not provide a native storage solution for log data.
  4. Options you can consider include:
    • Use a node-level logging agent that runs on every node.
    • Including a dedicated sidecar container for logging in an application pod.
    • Pushing logs directly to a backend from within an application.
  5. You can implement cluster-level logging by including a node-level logging agent on each node.

More stuff: