Bird
Raised Fist0

After changing elasticsearch.hosts in kibana.yml, Kibana still connects to the old host. What should you do?

medium📝 Debug Q7 of Q15
Elasticsearch - Kibana and Visualization
After changing elasticsearch.hosts in kibana.yml, Kibana still connects to the old host. What should you do?
AChange Elasticsearch port to 5601
BRestart the Kibana service to apply changes
CDelete Elasticsearch data directory
DClear browser cache and reload Kibana UI
Step-by-Step Solution
Solution:
  1. Step 1: Understand config reload behavior

    Kibana reads kibana.yml only on startup, so changes require restart.
  2. Step 2: Evaluate other options

    Browser cache does not affect backend connection; deleting data or changing ports unrelated.
  3. Final Answer:

    Restart the Kibana service to apply changes -> Option B
  4. Quick Check:

    Config changes need Kibana restart [OK]
Quick Trick: Always restart Kibana after config changes [OK]
Common Mistakes:
MISTAKES
  • Relying on browser cache clearing
  • Deleting Elasticsearch data unnecessarily
  • Changing unrelated ports

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes