Private
Private

Reputation: 1771

Dynamically updating slow log in ES 2.4.1?

I want to enable slow log for my Elasticsearch 2.4.1.But when i tried it dynamically, it is showing error for me ?

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"
      }
    }

The response in logs

[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

Upvotes: 0

Views: 487

Answers (1)

Private
Private

Reputation: 1771

This settings should be given at index level not cluster level.

PUT indexname/_settings
     {

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

    }

Upvotes: 2

Related Questions