gpt4 book ai didi

elasticsearch - 动态更新ES 2.4.1中的慢速日志?

转载 作者:行者123 更新时间:2023-12-03 00:57:27 25 4
gpt4 key购买 nike

我想为我的Elasticsearch 2.4.1启用慢日志,但是当我动态尝试时,它对我显示错误?

PUT _cluster/settings
{
"transient": {
"index.search.slowlog.threshold.query.debug": "0s",
"index.search.slowlog.threshold.fetch.debug": "0s",
"index.indexing.slowlog.threshold.index.debug": "0s"
}
}

日志中的响应
[2017-02-22 12:44:33,650][WARN ][action.admin.cluster.settings] [Powderkeg] igno
ring transient setting [index.indexing.slowlog.threshold.index.trace], not dynam
ically updateable
[2017-02-22 12:44:33,651][WARN ][action.admin.cluster.settings] [Powderkeg] igno
ring transient setting [index.search.slowlog.threshold.fetch.trace], not dynamic
ally updateable
[2017-02-22 12:44:33,651][WARN ][action.admin.cluster.settings] [Powderkeg] igno
ring transient setting [index.search.slowlog.threshold.query.trace], not dynamic
ally updateable
[2017-02-22 13:58:30,051][WARN ][action.admin.cluster.settings] [Powderkeg] igno
ring transient setting [index.indexing.slowlog.threshold.index.debug], not dynam
ically updateable
[2017-02-22 13:58:30,051][WARN ][action.admin.cluster.settings] [Powderkeg] igno
ring transient setting [index.search.slowlog.threshold.fetch.debug], not dynamic
ally updateable
[2017-02-22 13:58:30,052][WARN ][action.admin.cluster.settings] [Powderkeg] igno
ring transient setting [index.search.slowlog.threshold.query.debug], not dynamic
ally updateable

最佳答案

此设置应在索引级别而不是集群级别给出。

PUT indexname/_settings
{

"index.search.slowlog.threshold.query.debug": "0s",
"index.search.slowlog.threshold.fetch.debug": "0s",
"index.indexing.slowlog.threshold.index.debug": "0s"

}

关于elasticsearch - 动态更新ES 2.4.1中的慢速日志?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42386642/

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