Skip to main content

Log collection

The fluentbit and Fluentd stack is managed and configured using the Logging Operator (ex-Banzai Cloud Logging Operator). The operator provides some CRDs (Custom Resources Definitions), including:

ℹ️ INFO

To simplify the wording, this document will use Flow to indicate both Flows and ClusterFlows, and Output to indicate both Outputs and ClusterOutputs.

The Logging module includes the following Flows, each with its respective Output (using the same name):

  • audit: Kubernetes API server's audit logs. SD configures Kubernetes API by default to record the most relevant security events on the cluster (audit-logs).
  • events: Kubernetes events (equivalent to kubectl get events).
  • infra: logs written by Pods inside the "infra" namespace (kube-system, logging, monitoring, etc.), which provide infrastructural services for a SD cluster and are not application workload. This includes, for example, logs from the logging system itself.
  • ingressNginx: logs written bt Ingress NGINX Controller's pods inside the cluster. Logs are processed by a parsed and fields are mapped in a standardized structure.
  • kubernetes: logs written by Pods on non-"infra" namespaces. Basically, this Flow includes application workload's logs.
  • systemdCommon: logs written by system daemons running inside the cluster nodes.
  • systemdEtcd: logs written by the etcd daemons.
  • errors: logs which cannot be processed by the logging stack are sent to an internal MinIO bucket to enable debugging in case of errors. The bucket has a 7-day retention policy.

💡 TIP

Each Flow has its dedicated index in OpenSearch, to provide a simple way to visualize logs from a specific category inside OpenSearch Dashboards.

Provided Flows and CusterFlows​

This module provides the following Flows and ClusterFlows out of the box:

  • configs/kubernetes: only the cluster wide pods logging configuration (infrastructural namespaced excluded).
  • configs/infra: only the infrastructural namespaces logs
  • configs/ingress-nginx: only the nginx-ingress-controller logging configuration.
  • configs/audit: all the Kubernetes audit logs related configurations (with master selector and tolerations).
  • configs/events: all the Kubernetes events related configurations (with master selector and tolerations).
  • configs/systemd: all the systemd related configurations.
  • configs/systemd/kubelet: kubelet, docker, ssh systemd service logs configuration.
  • configs/systemd/etcd: only the etcd service logs configuration (with master selector and tolerations).