# Logging to STDOUT 5.x

**URL:** <https://discuss.elastic.co/t/logging-to-stdout-5-x/82342>\
**Category:** Elasticsearch\
**Created:** [April 13, 2017, 6:46pm UTC](https://discuss.elastic.co/t/logging-to-stdout-5-x/82342 "2017-04-13T18:46:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukejolly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukejolly/32/9951_2.png) [@lukejolly](https://discuss.elastic.co/u/lukejolly)\
**Post date:** [April 13, 2017, 6:46pm UTC](https://discuss.elastic.co/t/logging-to-stdout-5-x/82342/1 "2017-04-13T18:46:33Z")

</div>

With any systemd OS or when using containers, logging needs to go to STDOUT, not to a file. After much searching, I am still at a loss of how to do this with 5.X.

---

<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:** [April 14, 2017, 2:50am UTC](https://discuss.elastic.co/t/logging-to-stdout-5-x/82342/2 "2017-04-14T02:50:47Z")

</div>

You can use a very simple logging configuration:

```auto
status = error

appender.console.type = Console
appender.console.name = console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n

rootLogger.level = info
rootLogger.appenderRef.console.ref = console

```

Does that help?

---

<div class="post-metadata">

**Author:** ![lukejolly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukejolly/32/9951_2.png) [@lukejolly](https://discuss.elastic.co/u/lukejolly)\
**Post date:** [April 14, 2017, 7:51pm UTC](https://discuss.elastic.co/t/logging-to-stdout-5-x/82342/3 "2017-04-14T19:51:07Z")

</div>

That seems to have worked! The only other thing that needs to be done is remove the "quiet" option from ExecStart in the systemd service file.

---

<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:** [May 12, 2017, 8:05pm UTC](https://discuss.elastic.co/t/logging-to-stdout-5-x/82342/4 "2017-05-12T20:05:00Z")

</div>

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