gpt4 book ai didi

elasticsearch - 使用Open Distro在Elasticsearch中禁用状态管理历史记录

转载 作者:行者123 更新时间:2023-12-03 02:11:23 25 4
gpt4 key购买 nike

我在使用Open Distro而不是Elastics ilm的AWS上拥有ElasticSearch。
当您对索引应用状态管理时,会导致创建大量的审计索引。我想完全禁用此功能。
https://opendistro.github.io/for-elasticsearch-docs/docs/ism/settings/
显然,已完成将opendistro.index_state_management.history.enabled设置为false的操作,但是如果我将其应用于_cluster/settings,则似乎无法使用。

PUT _cluster/settings
{
"opendistro.index_state_management.history.enabled": false
}
结果是:
{
"Message": "Your request: '/_cluster/settings' payload is not allowed."
}
该设置在索引模板上也无效,因此无法在此处进行设置。
如何禁用此审核历史记录?

最佳答案

我在GitHub上问了一个答案:

PUT _cluster/settings
{
"persistent" : {
"opendistro.index_state_management.history.enabled": false
}
}
需要用 persistent Action 包装它。
https://opendistro.github.io/for-elasticsearch-docs/docs/elasticsearch/configuration/

关于elasticsearch - 使用Open Distro在Elasticsearch中禁用状态管理历史记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64605001/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com