[英]Disable state management history in Elasticsearch with Open Distro
I have ElasticSearch on AWS which uses Open Distro rather than Elastics ilm.我在 AWS 上有 ElasticSearch,它使用 Open Distro 而不是 Elastics ilm。
When you apply state management for indexes it causes a crazy amount of audit indexes to be created.当您对索引应用状态管理时,它会导致创建大量的审计索引。 I would like to just disable this completely.我想完全禁用它。
https://opendistro.github.io/for-elasticsearch-docs/docs/ism/settings/ https://opendistro.github.io/for-elasticsearch-docs/docs/ism/settings/
Apparently it's just done setting opendistro.index_state_management.history.enabled
to false
but if I apply it to the _cluster/settings
it doesn't appear to work.显然它刚刚完成将opendistro.index_state_management.history.enabled
设置为false
但如果我将它应用于_cluster/settings
它似乎不起作用。
PUT _cluster/settings
{
"opendistro.index_state_management.history.enabled": false
}
Results in:结果是:
{
"Message": "Your request: '/_cluster/settings' payload is not allowed."
}
The setting is also not valid on an index template so I cannot set it there.该设置在索引模板上也无效,因此我无法在那里进行设置。
How can I disable this audit history?如何禁用此审核历史记录?
I asked on GitHub and got an answer:我在 GitHub 上问过,得到了答案:
PUT _cluster/settings
{
"persistent" : {
"opendistro.index_state_management.history.enabled": false
}
}
Need to wrap it with an action of persistent
.需要用一个persistent
的动作来包装它。
https://opendistro.github.io/for-elasticsearch-docs/docs/elasticsearch/configuration/ https://opendistro.github.io/for-elasticsearch-docs/docs/elasticsearch/configuration/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.