# Reverting Index Logging Settings

**URL:** <https://discuss.elastic.co/t/reverting-index-logging-settings/313770>\
**Category:** Elasticsearch\
**Created:** [September 6, 2022, 9:14am UTC](https://discuss.elastic.co/t/reverting-index-logging-settings/313770 "2022-09-06T09:14:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nutcno](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@nutcno](https://discuss.elastic.co/u/nutcno)\
**Post date:** [September 6, 2022, 9:14am UTC](https://discuss.elastic.co/t/reverting-index-logging-settings/313770/1 "2022-09-06T09:14:04Z")

</div>

I want to add new index settings for all indices to add some additional configs to debug/info/warn and trace.

So like below I have this curl command -

curl -XPUT '[http://localhost:9200/\_all/\_settings?preserve\_existing=true](http://localhost:9200/_all/_settings?preserve_existing=true)' -d '{​​​​​  
"index.indexing.slowlog.threshold.index.debug" : "2s",  
"index.indexing.slowlog.threshold.index.info" : "5s",  
"index.indexing.slowlog.threshold.index.trace" : "500ms",  
"index.indexing.slowlog.threshold.index.warn" : "10s",  
"index.search.slowlog.threshold.fetch.debug" : "500ms",  
"index.search.slowlog.threshold.fetch.info" : "800ms",  
"index.search.slowlog.threshold.fetch.trace" : "200ms",  
"index.search.slowlog.threshold.fetch.warn" : "1s",  
"index.search.slowlog.threshold.query.debug" : "2s",  
"index.search.slowlog.threshold.query.info" : "5s",  
"index.search.slowlog.threshold.query.trace" : "500ms",  
"index.search.slowlog.threshold.query.warn" : "10s"  
}​​​​​'

What I'm looking to do is to figure out how I can revert all these settings across all indices that they were applied too. Will a restart of Elasticsearch wipe these additional settings?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 7, 2022, 5:50am UTC](https://discuss.elastic.co/t/reverting-index-logging-settings/313770/2 "2022-09-07T05:50:15Z")

</div>

Welcome to our community! 😃

You will want to switch the time values you have for `null`, and that should reset them to the defaults.

---

<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:** [October 5, 2022, 5:50am UTC](https://discuss.elastic.co/t/reverting-index-logging-settings/313770/3 "2022-10-05T05:50:49Z")

</div>

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