# Turn on logging in live production

**URL:** <https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167>\
**Category:** Elasticsearch\
**Created:** [October 9, 2014, 3:42pm UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167 "2014-10-09T15:42:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marie\_Jacob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marie_jacob/32/1038_2.png) [@Marie\_Jacob](https://discuss.elastic.co/u/Marie_Jacob)\
**Post date:** [October 9, 2014, 3:42pm UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/1 "2014-10-09T15:42:35Z")

</div>

Hi,  
I was wondering about enabling logging for specific modules in ES. If I  
wanted to turn on TRACE logging to see the merges, is it possible to turn  
it on a live instance (without stopping ES, editing logging.yml and  
restarting)?

Thanks,  
Marie.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 9, 2014, 3:51pm UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/2 "2014-10-09T15:51:15Z")

</div>

You can do so with the "logger" prefix in the cluster update settings api:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

You'll have to know the names of the loggers you want to change though.  
You can figure that out by looking around the Elasticsearch code or by  
finding examples.

Nik

On Thu, Oct 9, 2014 at 11:42 AM, Marie Jacob [jacob.marie@gmail.com](mailto:jacob.marie@gmail.com) wrote:

> Hi,  
> I was wondering about enabling logging for specific modules in ES. If I  
> wanted to turn on TRACE logging to see the merges, is it possible to turn  
> it on a live instance (without stopping ES, editing logging.yml and  
> restarting)?
> 
> Thanks,  
> Marie.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2Xk9JyqqCfob78HkCQM0q2A5U-ART%3DMfrEaDBTJ-0oVA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2Xk9JyqqCfob78HkCQM0q2A5U-ART%3DMfrEaDBTJ-0oVA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Marie\_Jacob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marie_jacob/32/1038_2.png) [@Marie\_Jacob](https://discuss.elastic.co/u/Marie_Jacob)\
**Post date:** [October 9, 2014, 10:17pm UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/3 "2014-10-09T22:17:03Z")

</div>

Thanks!  
So, would the call be something like this:

curl -XPUT localhost:9200/\_cluster/settings -d '{ "persistent" : {  
"logger.index.merge.scheduler" : "TRACE"} }'

On Thursday, October 9, 2014 11:51:59 AM UTC-4, Nikolas Everett wrote:

> You can do so with the "logger" prefix in the cluster update settings api:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-update-settings.html#logger)
> 
> You'll have to know the names of the loggers you want to change though.  
> You can figure that out by looking around the Elasticsearch code or by  
> finding examples.
> 
> Nik
> 
> On Thu, Oct 9, 2014 at 11:42 AM, Marie Jacob \<[jacob...@gmail.com](mailto:jacob...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi,  
> > I was wondering about enabling logging for specific modules in ES. If I  
> > wanted to turn on TRACE logging to see the merges, is it possible to turn  
> > it on a live instance (without stopping ES, editing logging.yml and  
> > restarting)?
> > 
> > Thanks,  
> > Marie.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d28637cb-b64c-4ceb-b8a2-6db4a2846d04%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d28637cb-b64c-4ceb-b8a2-6db4a2846d04%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 10, 2014, 2:51am UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/4 "2014-10-10T02:51:05Z")

</div>

Yes. Something like that.  
On Oct 9, 2014 6:17 PM, "Marie Jacob" [jacob.marie@gmail.com](mailto:jacob.marie@gmail.com) wrote:

> Thanks!  
> So, would the call be something like this:
> 
> curl -XPUT localhost:9200/\_cluster/settings -d '{ "persistent" : {  
> "logger.index.merge.scheduler" : "TRACE"} }'
> 
> On Thursday, October 9, 2014 11:51:59 AM UTC-4, Nikolas Everett wrote:
> 
> > You can do so with the "logger" prefix in the cluster update settings api:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > reference/current/cluster-update-settings.html#logger
> > 
> > You'll have to know the names of the loggers you want to change though.  
> > You can figure that out by looking around the Elasticsearch code or by  
> > finding examples.
> > 
> > Nik
> > 
> > On Thu, Oct 9, 2014 at 11:42 AM, Marie Jacob [jacob...@gmail.com](mailto:jacob...@gmail.com) wrote:
> > 
> > > Hi,  
> > > I was wondering about enabling logging for specific modules in ES. If I  
> > > wanted to turn on TRACE logging to see the merges, is it possible to turn  
> > > it on a live instance (without stopping ES, editing logging.yml and  
> > > restarting)?
> > > 
> > > Thanks,  
> > > Marie.
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/82590d7a-2fc8-4b14-ad1f-d80799f77da7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/d28637cb-b64c-4ceb-b8a2-6db4a2846d04%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d28637cb-b64c-4ceb-b8a2-6db4a2846d04%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/d28637cb-b64c-4ceb-b8a2-6db4a2846d04%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d28637cb-b64c-4ceb-b8a2-6db4a2846d04%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3ASNyxOo0wWoWw5h6iVfUSdcW%3DQHt3-dp3JmD5J4ruLw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3ASNyxOo0wWoWw5h6iVfUSdcW%3DQHt3-dp3JmD5J4ruLw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ananth](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ananth](https://discuss.elastic.co/u/ananth)\
**Post date:** [October 10, 2014, 11:13am UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/5 "2014-10-10T11:13:36Z")

</div>

Hi Nikolas,

Is is possible to change log level to specific node ? This will be useful  
incase of heavy indexing clusters.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/13b1f891-b442-4a38-920d-0201be2c8aee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13b1f891-b442-4a38-920d-0201be2c8aee%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 10, 2014, 11:14am UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/6 "2014-10-10T11:14:56Z")

</div>

Not without restarting it.  
On Oct 10, 2014 7:13 AM, "Anantha Govindarajan" \<  
[ananthagovindarajan@gmail.com](mailto:ananthagovindarajan@gmail.com)\> wrote:

> Hi Nikolas,
> 
> Is is possible to change log level to specific node ? This will be useful  
> incase of heavy indexing clusters.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/13b1f891-b442-4a38-920d-0201be2c8aee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13b1f891-b442-4a38-920d-0201be2c8aee%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/13b1f891-b442-4a38-920d-0201be2c8aee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13b1f891-b442-4a38-920d-0201be2c8aee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd1-%2BtDPwuxyFTUzgTEgmKqwODsmbvYw8OCj7cLK%3DYniEQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd1-%2BtDPwuxyFTUzgTEgmKqwODsmbvYw8OCj7cLK%3DYniEQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ananth](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ananth](https://discuss.elastic.co/u/ananth)\
**Post date:** [October 10, 2014, 11:33am UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/7 "2014-10-10T11:33:22Z")

</div>

Hi Nikolas,

Thanks for instant reply . will it be supported in coming releases ?

Since only few nodes are getting loaded in out es cluster , in that case i  
need to watch logs on those nodes alone.

Also changing log level in entire cluster affects client node too .  
Enabling TRACE level in client node(My application server) increases logs  
size drastically .

So option to change log level in specific nodes will be definetly helpful  
here.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6f509298-7f95-4712-86e0-1e0f7c545d0a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6f509298-7f95-4712-86e0-1e0f7c545d0a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 10, 2014, 1:56pm UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/8 "2014-10-10T13:56:53Z")

</div>

I don't believe there are plans for changing logging level on a specific  
node using the api. I'd file an issue with pretty much what you said.

You might be able to limit the verbosity by just setting TRACE or DEBUG on  
the logger you need. Thats not as good as per node, but its something.

On Fri, Oct 10, 2014 at 7:33 AM, Anantha Govindarajan \<  
[ananthagovindarajan@gmail.com](mailto:ananthagovindarajan@gmail.com)\> wrote:

> Hi Nikolas,
> 
> Thanks for instant reply . will it be supported in coming releases ?
> 
> Since only few nodes are getting loaded in out es cluster , in that case i  
> need to watch logs on those nodes alone.
> 
> Also changing log level in entire cluster affects client node too .  
> Enabling TRACE level in client node(My application server) increases logs  
> size drastically .
> 
> So option to change log level in specific nodes will be definetly helpful  
> here.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6f509298-7f95-4712-86e0-1e0f7c545d0a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6f509298-7f95-4712-86e0-1e0f7c545d0a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6f509298-7f95-4712-86e0-1e0f7c545d0a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6f509298-7f95-4712-86e0-1e0f7c545d0a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0QsbFhWq9Zh3h68y\_yyvXZVDEfMphPESJWNv3-8GHdVw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0QsbFhWq9Zh3h68y_yyvXZVDEfMphPESJWNv3-8GHdVw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:57am UTC](https://discuss.elastic.co/t/turn-on-logging-in-live-production/20167/9 "2017-07-06T00:57:01Z")

</div>


