# Updating slow query log in production environment

**URL:** <https://discuss.elastic.co/t/updating-slow-query-log-in-production-environment/210099>\
**Category:** Elasticsearch\
**Created:** [December 2, 2019, 3:16am UTC](https://discuss.elastic.co/t/updating-slow-query-log-in-production-environment/210099 "2019-12-02T03:16:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikant](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Manikant](https://discuss.elastic.co/u/Manikant)\
**Post date:** [December 2, 2019, 3:16am UTC](https://discuss.elastic.co/t/updating-slow-query-log-in-production-environment/210099/1 "2019-12-02T03:16:29Z")

</div>

Hi All,

we are using Elastic Search 5.6 and want to know what elastic queries is running for search API in production environment.

we run below command for slow query logs.

curl -XPUT [http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings) -H ‘Content-Type: application/json’ -d’

{

"transient" : {

"logger.index.search.slowlog" : "DEBUG",

"logger.index.indexing.slowlog" : "DEBUG"

}

}'

curl -XPUT 'localhost:9200/Index\_name' -H 'Content-Type: application/json' -d '{

"index.search.slowlog.threshold.query.warn": "0ms",

"index.search.slowlog.threshold.query.info": "0ms",

"index.search.slowlog.threshold.query.debug": "0ms",

"index.search.slowlog.threshold.query.trace": "0ms",

"index.search.slowlog.threshold.fetch.warn": "0ms",

"index.search.slowlog.threshold.fetch.info": "0ms",

"index.search.slowlog.threshold.fetch.debug": "0ms",

"index.search.slowlog.threshold.fetch.trace": "0ms"

}'

but,slow query log is not updating. Please help me.

@Elastic

---

<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:** [December 30, 2019, 3:16am UTC](https://discuss.elastic.co/t/updating-slow-query-log-in-production-environment/210099/2 "2019-12-30T03:16:30Z")

</div>

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