HI,
When I try to load the Kibana UI, I see the following error:
at http://kibana.dev.commandcentral.com/bundles/kibana.bundle.js?v=15571:227:19758
at processQueue (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:38:23621)
at http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:38:23888
at Scope.$eval (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:39:4619)
at Scope.$digest (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:39:2359)
at Scope.$apply (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:39:5037)
at done (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:37:25027)
at completeRequest (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:37:28702)
at XMLHttpRequest.xhr.onload (http://kibana.dev.commandcentral.com/bundles/commons.bundle.js?v=15571:37:29634)
Kibana is running on the host: "abc.dev.com" and is configured to use the Elastic Search at "http://elasticsearch-logging:9200" where "elasticsearch-logging" is the name of the service in Kubernetes.
I tried the following:
Allow Ingress to Elastic search
I assumed that the error is due to CORS where the host names differ, so I created an Ingress to the ES cluster with the name "elasticsearch-logging.abc.com".
Result: The ES instance running at 9200 fails to find the second instance at 9300. This loops forever and the ES doesn't start.
Renamed the service to "elasticsearch-logging.abc.com"
Result: The deployment fails because of "." in the service name.
Enable CORS on ES using the following configuration:
Kibana fails to connect with Elastic Search cluster and keeps looping on an error.
Also, I couldn't use CURL to check the health of ES and indices. I was getting an unauthorized error.
@challa_sai_kiran are you specifying the username/password when using curl to connect to Elasticsearch? That's a great place to start to ensure the username/password are configured correctly in Elasticsearch before moving on to working on getting Kibana to be able to connect to it. You can use something similar to the following to connect to Elasticsearch and authenticate:
curl -u elastic:changeme http://localhost:9200
Also is that the full error that you're seeing? It appears to have the first few lines missing?
@challa_sai_kiran so you aren't using user authentication on Elasticsearch, but you're seeing a 403? Can you open up your browser's dev tools and see which network call is giving you a 403?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.