# Configuring search slow log

**URL:** <https://discuss.elastic.co/t/configuring-search-slow-log/7443>\
**Category:** Elasticsearch\
**Created:** [April 23, 2012, 2:46pm UTC](https://discuss.elastic.co/t/configuring-search-slow-log/7443 "2012-04-23T14:46:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yehuda\_Zargarov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yehuda_zargarov/32/2164_2.png) [@Yehuda\_Zargarov](https://discuss.elastic.co/u/Yehuda_Zargarov)\
**Post date:** [April 23, 2012, 2:46pm UTC](https://discuss.elastic.co/t/configuring-search-slow-log/7443/1 "2012-04-23T14:46:27Z")

</div>

Hi,

I'm trying to configure it using this manual:

[http://www.elasticsearch.org/guide/reference/index-modules/slowlog.html](http://www.elasticsearch.org/guide/reference/index-modules/slowlog.html)

1. Do I need to add the threshold to the logging.yml or the  
elasticsearch.yml?

2. I have 6 servers running. I want to add this log only in one of  
them. After changing the yml file, do I need to restart elastic in all  
of them, one of them or none?

Thanks

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 23, 2012, 4:31pm UTC](https://discuss.elastic.co/t/configuring-search-slow-log/7443/2 "2012-04-23T16:31:18Z")

</div>

1. thresholds are already in elasticsearch.yml (close to the end of the  
file). You just need to uncomment them.

2. only the server where you changed elasticsearch.yml needs to be restarted

On Monday, April 23, 2012 10:46:27 AM UTC-4, Yehuda Zargarov wrote:

> Hi,
> 
> I'm trying to configure it using this manual:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/slowlog.html)
> 
> 1. Do I need to add the threshold to the logging.yml or the  
> elasticsearch.yml?
> 
> 2. I have 6 servers running. I want to add this log only in one of  
> them. After changing the yml file, do I need to restart elastic in all  
> of them, one of them or none?
> 
> Thanks

---

<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 6, 2017, 3:31am UTC](https://discuss.elastic.co/t/configuring-search-slow-log/7443/3 "2017-07-06T03:31:20Z")

</div>


