Bird
0
0

In a Kubernetes cluster, if Fluentd is configured to send logs to Elasticsearch at

medium📝 Command Output Q4 of 15
Kubernetes - Monitoring and Logging
In a Kubernetes cluster, if Fluentd is configured to send logs to Elasticsearch at
<match **>
  @type elasticsearch
  host elasticsearch
  port 9200
</match>
but the Elasticsearch pod crashes, what will Fluentd do with the incoming logs?
ASend logs to Kibana directly as a fallback
BDiscard the logs immediately without retrying
CBuffer the logs locally and retry sending until Elasticsearch is available
DSwitch to sending logs to a different Elasticsearch cluster automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand Fluentd buffering

    Fluentd buffers logs locally when the output destination is unavailable.
  2. Step 2: Behavior on Elasticsearch downtime

    When Elasticsearch is down, Fluentd retries sending logs from its buffer until the service is back.
  3. Final Answer:

    Buffer the logs locally and retry sending until Elasticsearch is available -> Option C
  4. Quick Check:

    Fluentd uses buffering and retry mechanisms [OK]
Quick Trick: Fluentd buffers logs if Elasticsearch is down [OK]
Common Mistakes:
  • Assuming Fluentd discards logs immediately
  • Thinking Fluentd sends logs directly to Kibana
  • Believing Fluentd auto-switches Elasticsearch clusters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes