I am beginner in using Elasticsearch, and Kibana for that matter. I am experiencing problem for which I am not able to find a solution.
First of all, I have an Elasticsearch server with couple of indices, running on IBM Bluemix. I have local Kibana instance that I've configured to connect to that server. All well and good but when I try to create index patterns in Kibana for the particular indices in ES i get "Authentication Error" at the top of my browser with the following stack trace:
This suggests that the user you're logged into Kibana as, does not have the right permissions for those indices in Elasticsearch, or that you don't have rights to create objects (like index patterns) in Kibana. What is your security setup in Elasticsearch?
I am using the provided credentials from Bluemix, namely the username and password (I am not certain about other security mechanism that Compose for ES might use, so I have to check that). The browser requests these when starting Kibana. I also specified them in the kibana.yml file before starting it.
I have been having the same issue, and it seemed to start this week. We are running Kibana local and connecting to Compose Elastic Search, and it appears that Kibana isn't passing the authorization header to Compose Elastic in some cases. I was able to get it working by adding this to kibana.yml:
elasticsearch.customHeaders: { Authorization: Basic XXXXXXXetc }
where XXXXXXXetc is the Base64 encoding of the string id:password
I continue to let elasticsearch.requestHeadersWhitelist default. I haven't thoroughly tested but the first few pages that were receiving 401 status codes are now rendering correctly; hope this works for you.
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.