Kubernetes and Cloud Native Associate (KCNA)Cloud Native ObservabilityEasy
A DevOps team needs to collect and centralize logs from various Kubernetes pods and nodes for later analysis and troubleshooting. They require a lightweight, extensible, and efficient log forwarder that can send logs to multiple destinations, including Elasticsearch. Which tool is specifically designed for this purpose, acting as a universal log collector?
- APrometheus
- BFluent Bit
- CGrafana
- DJaeger
Show answer & explanationAnswer & explanation
Correct answer: B. Fluent Bit
Fluent Bit is a lightweight and high-performance log processor and forwarder. It's designed to collect logs from various sources, including Kubernetes, and send them to multiple destinations like Elasticsearch, making it ideal for centralized logging.
Why the other options are wrong
- A. Prometheus is a metric collection system, not a log forwarder.
- C. Grafana is a data visualization and dashboarding tool, not a log collector.
- D. Jaeger is a distributed tracing system, not related to log collection.
Fluent Bit
A lightweight and high-performance log processor, forwarder, and aggregator for various data sources, including containers and Kubernetes.
- Part of the Fluentd ecosystem.
- Designed for minimal resource consumption.
- Supports numerous input and output plugins.
- Often deployed as a DaemonSet in Kubernetes to collect node-level logs.
Memory trick: Fluent Bit filters and forwards logs efficiently.