基巴纳要求凭证 [英] Kibana asking for credentials
问题描述
在初始配置中,我使用以下方式设置了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
都在同一台服务器上运行。没有亲自尝试过,但是下面的链接可以很方便。
- 与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屋!