问题描述
我在使用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
的动作来包装它。
https://opendistro.github.io/for-elasticsearch-docs/docs/elasticsearch/configuration/