Bird
Raised Fist0

What will happen if the elasticsearch.hosts setting in kibana.yml is missing?

medium📝 Predict Output Q5 of Q15
Elasticsearch - Kibana and Visualization
What will happen if the elasticsearch.hosts setting in kibana.yml is missing?
AKibana will connect to localhost:9200 by default
BKibana will fail to start due to missing connection info
CKibana will start but show connection errors in UI
DKibana will connect to a random Elasticsearch node
Step-by-Step Solution
Solution:
  1. Step 1: Understand default behavior

    If elasticsearch.hosts is missing, Kibana uses the default value ["http://localhost:9200"].
  2. Step 2: Result in Kibana behavior

    Kibana will connect to localhost:9200 by default.
  3. Final Answer:

    Kibana will connect to localhost:9200 by default -> Option A
  4. Quick Check:

    Missing hosts = localhost:9200 default [OK]
Quick Trick: Missing elasticsearch.hosts uses localhost:9200 default [OK]
Common Mistakes:
MISTAKES
  • Assuming Kibana fails to start due to missing connection info
  • Thinking Kibana shows connection errors without config
  • Believing it connects to a random Elasticsearch node

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes