Elasticsearch 和 Kibana,创建了数以千计的文档,我不知道为什么,连接也在增加

Elasticsearch and Kibana, thousands of documents created I don't know why and connections increasing

我实际上是在使用官方 Docker 图像测试 Elasticsearch 和 Kibana(最新版本)。一切正常, 运行 而我只索引了一个文档。问题是当我查看 Kibana 中的监控部分时,显然有数千个文档(每秒钟创建十几个)并且 Kibana 连接不断增加(屏幕截图上为 1972)。所有这些文件都是日志?为什么有这么多,这些联系又是怎么回事?实际上我有点害怕在生产中使用它,因为我没有找到任何关于它的信息。

screen capture

是X-Pack监控的数据指标。单击索引 link 并选中 "Show system indices" 框以查看它们。另外,请参阅 https://www.elastic.co/guide/en/x-pack/current/xpack-monitoring.html 了解更多信息。

Kibana 的 Docker 图像实际上有一个环境变量来禁用名为 XPACK_MONITORING_ENABLED 的监视。您可以在使用 -e XPACK_MONITORING_ENABLED=false 启动 Kibana 容器时将其设置为 false。参见 https://www.elastic.co/guide/en/kibana/6.1/_configuring_kibana_on_docker.html

不过,您应该注意目前环境变量实际上已损坏,您还需要在 kibana.yml 中禁用 xpack.monitoring.ui.container.elasticsearch.enabled。参见 https://github.com/elastic/kibana/issues/14967