首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在ES 2.4.1中动态更新慢日志?

在ES 2.4.1中动态更新慢日志?
EN

Stack Overflow用户
提问于 2017-02-22 16:49:45
回答 1查看 382关注 0票数 0

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

代码语言:javascript
复制
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"
      }
    }

日志中的响应

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

发布于 2017-02-22 16:57:01

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

代码语言:javascript
复制
PUT indexname/_settings
     {

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

    }
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42386642

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档