基巴纳要求凭证 [英] Kibana asking for credentials

查看:204
本文介绍了基巴纳要求凭证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了一个Kibana服务器,它正在使用一个外部ElasticServer数据源。 Nignx在上面,我通过它访问Kibana。



在初始配置中,我使用以下方式设置了Kibana的凭据:

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

然后我可以访问Kibana Web控制台,看到它正在运行。但是,外部的elasticServer没有配置,所以我编辑了kibana.yml文件来指向外部的ElasticServer。

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

当我重新启动Kibana时,它能够连接到弹性搜索服务器,实际上它似乎在索引上写了一个条目。



然而,现在我我被要求一些凭据来连接到Kibana Web界面。他们不是我以前设置的kibanaadmin,还是弹性搜索数据库中的那个。我应该使用哪些凭证?

解决方案

你确定你没有运行 Kibana 来自错误的ES实例,并且 Kibana Nginx 都在同一台服务器上运行。没有亲自尝试过,但是下面的链接可以很方便。




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?

解决方案

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.

这篇关于基巴纳要求凭证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆