# Turn on debugging from commandline (get those 6 more lines)

**URL:** <https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285>\
**Category:** Elasticsearch\
**Created:** [July 16, 2017, 2:28am UTC](https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285 "2017-07-16T02:28:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtprince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jtprince/32/20090_2.png) [@jtprince](https://discuss.elastic.co/u/jtprince)\
**Post date:** [July 16, 2017, 2:28am UTC](https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285/1 "2017-07-16T02:28:28Z")

</div>

I am starting elasticsearch in a docker container and getting an error on startup. The entire error message is being hidden with the phrase `... 6 more` (indicating there are 6 more lines of error messages). I have run docker-compose in verbose mode and tailing the logs and I still get this truncation, so it leads me to believe that it is elasticsearch that is truncating the debug message. I already tried this commandline option:

```
-E rootLogger.level=debug

```

But it did not work (still said `... 6 more`).

#### How do I get elasticsearch to output all debug information using a commandline option?

_(I am running elasticsearch version 5.1.2)_

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [July 17, 2017, 5:42am UTC](https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285/2 "2017-07-17T05:42:47Z")

</div>

Would you please share the stack trace that you have?

The truncation that you're seeing is not from Elasticsearch, but rather the default handling of printing stack traces in Java. From the [docs](http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--):

> Note the presence of lines containing the characters "`...`". These lines indicate that the remainder of the stack trace for this exception matches the indicated number of frames from the bottom of the stack trace of the exception that was caused by this exception (the "enclosing" exception). This shorthand can greatly reduce the length of the output in the common case where a wrapped exception is thrown from same method as the "causative exception" is caught. The above example was produced by running the program:

---

<div class="post-metadata">

**Author:** ![jtprince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jtprince/32/20090_2.png) [@jtprince](https://discuss.elastic.co/u/jtprince)\
**Post date:** [July 17, 2017, 4:24pm UTC](https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285/3 "2017-07-17T16:24:37Z")

</div>

edit: the problem was solved by updating my docker image to elasticsearch 5.3.3 (from 5.1.2). My docker binary must have updated to a newer version that was incompatible with the older elasticsearch image (I'm on arch linux, so bleeding edge). Thanks again for your extra eyes on this!

* * *

When I remove the root.Logger flag above I get this error message:

[https://pastebin.com/9T2mgWmc](https://pastebin.com/9T2mgWmc)

Here's the error I'm getting (when I try to use the root logger flag):

[https://pastebin.com/qT3fR5Yp](https://pastebin.com/qT3fR5Yp)

Thank you!

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [July 18, 2017, 4:56am UTC](https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285/4 "2017-07-18T04:56:44Z")

</div>

The correct setting to set the root log level is `logger._root=debug` or `logger.level=debug` (they do the same thing). Startup fails if you try to set an unrecognized setting. The issue that you're seeing when you do not set this setting is related to v2 cgroups and is fixed in v5.3.1 ([https://github.com/elastic/elasticsearch/pull/23493](https://github.com/elastic/elasticsearch/pull/23493)).

---

<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:** [August 15, 2017, 4:56am UTC](https://discuss.elastic.co/t/turn-on-debugging-from-commandline-get-those-6-more-lines/93285/5 "2017-08-15T04:56:49Z")

</div>

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