azure - 无法连接到 ElasticSearch 托管服务

标签 azure elasticsearch kibana

我已在 Azure 上部署了 ES 托管服务。我可以访问 Kibana Web 应用程序: http://20.xx.xxx.172:5601/

在 NSG 中,我打开了端口 8080、5601 和 9200。

enter image description here

但是当尝试使用 postman 运行 ES 查询时,它没有给出任何响应?我们如何才能使设置生效?

enter image description here

最佳答案

您可能需要告诉 ElasticSearch 公开开放,因为它只有 binds to localhost by default 。在elasticsearch.yml 文件中,这是通过设置network.host var 来完成的:

network.host: 0.0.0.0

0.0.0.0 告诉 ElasticSearch 它将允许自己与外界取得联系。

因此,我建议您保护 Kibana 和 ElasticSearch 的安全。理想情况下,仅通过安全身份验证将 kibana 暴露给外界。 ElasticSearch 应该保持不暴露。

Kibana 的身份验证现在已经免费了一段时间了。您可以查看文档 here您最喜欢的方法。

PS:我不是安全人员,所以不要烧我。只是想留下来,保重。

关于azure - 无法连接到 ElasticSearch 托管服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66815783/

相关文章:

azure - 即使使用确认参数,Remove-AzAutomationSchedule 也需要确认

elasticsearch - 流利的配置来解析auth.log

javascript - 弹性 APM - RUM JS 代理 : Integration with React-Redux applications

elasticsearch - Elasticsearch 查询名称/值对列拉

python - Azure是否允许应用程序需要OpenGL,有什么办法可以解决吗?

c - LibCurl : Upload file to azure blob storage and Authorization

azure - 二头肌 : Creating random string

ElasticSearch 安全和端口

java - 在 IntelliJ 中运行/调试 ElasticSearch

java - 如何使用 slf4j 以其他语言(例如日语)记录文本