Continuing the discussion from Retrieve elasticsearch.hosts from Kibana config in plugin:
I am using Elastic stack 7.4.2 and I am having this simple issue with just getting the configured elasticsearch hosts. It should not be more difficult than
but I get the error
"Unknown config key: elasticsearch.hosts". When I do a
console.log of my config, I see that
elasticsearch only has one key:
enabled: true. Why is it that the configuration is not accessible?
kibana.yml I have
elasticsearch.hosts: ['http://localhost:9299'] configured and kibana receives data, so the configuration itself must be correct.