# Elasticsearch enabling slow logs to all the indices in cluster at once?

**URL:** <https://discuss.elastic.co/t/elasticsearch-enabling-slow-logs-to-all-the-indices-in-cluster-at-once/76014>\
**Category:** Elasticsearch\
**Created:** [February 22, 2017, 10:12am UTC](https://discuss.elastic.co/t/elasticsearch-enabling-slow-logs-to-all-the-indices-in-cluster-at-once/76014 "2017-02-22T10:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [February 22, 2017, 10:12am UTC](https://discuss.elastic.co/t/elasticsearch-enabling-slow-logs-to-all-the-indices-in-cluster-at-once/76014/1 "2017-02-22T10:12:46Z")

</div>

ES 2.4.0

I know that we can enable slow log `per-index level` but i want to enabling for all the indices in my cluster at once.  
So i tried giving the setting for the whole cluster:

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

```

It thrown the error like this:  
`[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`

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [February 24, 2017, 5:54am UTC](https://discuss.elastic.co/t/elasticsearch-enabling-slow-logs-to-all-the-indices-in-cluster-at-once/76014/2 "2017-02-24T05:54:34Z")

</div>

This can't be done at cluster level this can only be done at per-index level.

```
PUT indexname/settings
     {
        "index.search.slowlog.threshold.query.trace": "0s",
        "index.search.slowlog.threshold.fetch.trace": "0s",
        "index.indexing.slowlog.threshold.index.trace": "0s"
    }
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 24, 2017, 5:54am UTC](https://discuss.elastic.co/t/elasticsearch-enabling-slow-logs-to-all-the-indices-in-cluster-at-once/76014/3 "2017-03-24T05:54:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
