Kibana asking for credentials

帅比萌擦擦* 提交于 2019-12-12 02:44:44

问题


I set up a Kibana server that is accesing an External ElasticServer Datasource. Nignx is on top, and I access Kibana through it.

On the initial config, I set up the credentials of Kibana using:

sudo htpasswd -c /etc/nginx/htpasswd.users kibanaadmin

Then I was able to access the Kibana Web Console, and see it running. However, the external elasticServer was not configured, so I edited the kibana.yml file to point that external ElasticServer.

elasticsearch.url: "https://bluemix-sandbox-dal-9-portal0.dblayer.com:18671/"
elasticsearch.username: "admin"
elasticsearch.password: "mypass"

When I restarted Kibana, it was able to connect to the elasticsearch server, and in fact it seems that it wrote an entry on the index there.

However, now I am asked for some credentials to get connected to the Kibana Web interface. They are not the kibanaadmin I set up previously, or the ones on elasticsearch database. Which credentials should i use?


回答1:


Are you sure you're not running Kibana from the wrong ES instance and both Kibana and Nginx are running on the same server. Haven't tried it out personally but then the below links could be handy.

  • Enabling Kibana Authentication with Nginx

  • Securing Elasticsearch, Kibana with nginx

  • Git- Kibana with Nginx Reverse Proxy



来源:https://stackoverflow.com/questions/40847657/kibana-asking-for-credentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!