# Enable slow logs not working

**URL:** <https://discuss.elastic.co/t/enable-slow-logs-not-working/57120>\
**Category:** Elasticsearch\
**Created:** [August 3, 2016, 3:02pm UTC](https://discuss.elastic.co/t/enable-slow-logs-not-working/57120 "2016-08-03T15:02:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_singh/32/46630_2.png) [@Rohit\_Singh](https://discuss.elastic.co/u/Rohit_Singh)\
**Post date:** [August 3, 2016, 3:02pm UTC](https://discuss.elastic.co/t/enable-slow-logs-not-working/57120/1 "2016-08-03T15:02:05Z")

</div>

Hi, I have referred Elastic search guide for enabling slow logs

PUT /\_cluster/settings  
{  
"transient" : {  
"logger.index.search.slowlog" : "DEBUG",  
"logger.index.indexing.slowlog" : "WARN"  
}  
}

PUT /my\_index/\_settings  
{  
"index.search.slowlog.threshold.query.warn" : "10s",  
"index.search.slowlog.threshold.fetch.debug": "500ms",  
"[index.indexing.slowlog.threshold.index.info](http://index.indexing.slowlog.threshold.index.info)": "5s"  
}

But all the logs are empty. any pointers , i tried to set the threshold level to ms also, in that case was unable to see the logs

---

<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:** [August 5, 2016, 12:20am UTC](https://discuss.elastic.co/t/enable-slow-logs-not-working/57120/2 "2016-08-05T00:20:25Z")

</div>

Maybe there is nothing running that slow?  
What if you set it all to 0, does it log then?

---

<div class="post-metadata">

**Author:** ![silence](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@silence](https://discuss.elastic.co/u/silence)\
**Post date:** [March 14, 2017, 3:34am UTC](https://discuss.elastic.co/t/enable-slow-logs-not-working/57120/3 "2017-03-14T03:34:24Z")

</div>

Did you solve this problem?

---

<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:** [July 5, 2017, 10:02pm UTC](https://discuss.elastic.co/t/enable-slow-logs-not-working/57120/4 "2017-07-05T22:02:18Z")

</div>


