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

时间:2017-02-22 08:49:45

标签: elasticsearch

我想为我的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

1 个答案:

答案 0 :(得分:2)

此设置应在索引级别而不是群集级别提供。

PUT indexname/_settings
     {

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

    }