elasticsearch 在 运行 集群上应用安全性

elasticsearch applying security on a running cluster

我有一个带有 logstash 的 ELK stack 7.6.2,一个带有 3 个节点和 kibana 的 elasticsearch 集群。我想增加安全性,但我唯一能找到的文档总是开始 'from scratch' 我想在已经 运行 的集群上举一个例子,以免把它弄乱。谢谢你的帮助。 纪尧姆

您不能在已经 运行 的集群上启用安全功能。安全设置被分类为 static,这意味着它们不能即时动态更新:

static: These settings must be set at the node level, either in the elasticsearch.yml file, or as an environment variable or on the command line when starting a node. They must be set on every relevant node in the cluster.

dynamic: These settings can be dynamically updated on a live cluster with the cluster-update-settings API.

请参阅 https://www.elastic.co/guide/en/elasticsearch/reference/7.6/modules.html 以获取参考和所有可以动态更新的设置(您不会在那里找到安全设置)。

此外,从本指南 (https://www.elastic.co/guide/en/elasticsearch/reference/current/get-started-enable-security.html) 可以看出您需要停止 运行 elasticsearch 和 kibana 实例以启用安全性。

希望能帮到你