Bird
0
0

Which of the following is the correct Fluentd output plugin configuration to send logs to Elasticsearch?

easy📝 Configuration Q3 of 15
Kubernetes - Monitoring and Logging
Which of the following is the correct Fluentd output plugin configuration to send logs to Elasticsearch?
A<source **>\n @type elasticsearch\n host elasticsearch\n port 9200\n</source>
B<match **>\n @type elasticsearch\n host elasticsearch\n port 9200\n</match>
C<match **>\n @type kibana\n host elasticsearch\n port 9200\n</match>
D<filter **>\n @type elasticsearch\n host elasticsearch\n port 9200\n</filter>
Step-by-Step Solution
Solution:
  1. Step 1: Understand Fluentd config sections

    Fluentd uses to define output destinations.
  2. Step 2: Verify plugin type and syntax

    Output plugin for Elasticsearch is '@type elasticsearch' inside block.
  3. Final Answer:

    Correct Fluentd output plugin uses <match> with @type elasticsearch -> Option B
  4. Quick Check:

    Output plugin = <match> + @type elasticsearch [OK]
Quick Trick: Use for output, for input in Fluentd [OK]
Common Mistakes:
  • Using or for output
  • Wrong plugin type like kibana
  • Missing @type elasticsearch

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes