# Setting index.search.slowlog.threshold.\* is not working

**URL:** <https://discuss.elastic.co/t/setting-index-search-slowlog-threshold-is-not-working/199083>\
**Category:** Elasticsearch\
**Created:** [September 11, 2019, 1:27pm UTC](https://discuss.elastic.co/t/setting-index-search-slowlog-threshold-is-not-working/199083 "2019-09-11T13:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [September 11, 2019, 1:27pm UTC](https://discuss.elastic.co/t/setting-index-search-slowlog-threshold-is-not-working/199083/1 "2019-09-11T13:27:15Z")

</div>

I have around 400 indices. Some time back I enabled full logging by below command.

curl -XPUT -H 'Content-Type: application/json' '[http://localhost:9200/\_all/\_settings?preserve\_existing=true](http://localhost:9200/_all/_settings?preserve_existing=true)' -d '{  
"index.indexing.slowlog.threshold.index.debug" : "0s",  
"index.search.slowlog.threshold.fetch.debug" : "0s",  
"index.search.slowlog.threshold.query.debug" : "0s"  
}'

Now I am done with collecting logs and want to disable this. So i am running command.. Just adding -1 to debug and trace both...

curl -XPUT -H 'Content-Type: application/json' '[http://localhost:9200/\_all/\_settings?preserve\_existing=true](http://localhost:9200/_all/_settings?preserve_existing=true)' -d '{  
"index.indexing.slowlog.threshold.index.debug" : "-1",  
"index.search.slowlog.threshold.fetch.debug" : "-1",  
"index.search.slowlog.threshold.query.debug" : "-1",  
"index.indexing.slowlog.threshold.index.trace" : "-1",  
"index.search.slowlog.threshold.fetch.trace" : "-1",  
"index.search.slowlog.threshold.query.trace" : "-1"  
}'

But still logs are getting generated.  
from [http://localhost:9200/\_all/\_settings](http://localhost:9200/_all/_settings), I do see still as 0 for few. and few have -1. Not sure why it is not updating all indices...

"index": {  
"search": {  
"slowlog": {  
"threshold": {  
"fetch": {  
"trace": "0s",  
"debug": "0s"  
},  
"query": {  
"trace": "0s",  
"debug": "0s"  
}  
}  
}  
},  
"indexing": {  
"slowlog": {  
"threshold": {  
"index": {  
"trace": "0s",  
"debug": "0s"  
}  
}  
}  
},

There is a huge logging happening and want to stop it...Please help on this

---

<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 9, 2019, 1:27pm UTC](https://discuss.elastic.co/t/setting-index-search-slowlog-threshold-is-not-working/199083/2 "2019-10-09T13:27:16Z")

</div>

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