# Default sensu-server log location?

**URL:** <https://discourse.sensu.io/t/default-sensu-server-log-location/796>\
**Category:** Sensu Classic (EOL)\
**Created:** [April 10, 2017, 3:12pm UTC](https://discourse.sensu.io/t/default-sensu-server-log-location/796 "2017-04-10T15:12:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sid\_Stuart](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@Sid\_Stuart](https://discourse.sensu.io/u/Sid_Stuart)\
**Post date:** [April 10, 2017, 3:12pm UTC](https://discourse.sensu.io/t/default-sensu-server-log-location/796/1 "2017-04-10T15:12:49Z")

</div>

I’m running Sensu in a container and would like to send log output to STDOUT instead of /var/log/sensu. The documentation says,

> `-l` (`--log LOG`)  
> The path to the `LOG` file. Defaults to `STDOUT` if not provided.

The container is running from a Centos image with a 1:0.27.0 Sensu RPM is installed. The RPM creates a /var/log/sensu directory and drops in a logrotate configuration file to rotate sensu-server.log in that directory.The command line call in /etc/systemd/system/sensu-server.service is,

> ExecStart=/opt/sensu/bin/sensu-service start server

This command **is not** setting the log file to something other than STDOUT. And yet, when sensu-server is started, the log file shows up in /var/log/sensu/sensu-server.log, just where the logrotate file expects it to be.

Is the documentation for the default log setting correct? If not, how does one set STDOUT as the target for log messages?

Sid

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/default-sensu-server-log-location/796/2 "2018-11-22T02:07:53Z")

</div>


