# Rancher HA default log levels

**URL:** <https://forums.suse.com/t/rancher-ha-default-log-levels/6253>\
**Category:** Rancher 1.x\
**Created:** [April 26, 2017, 11:33pm UTC](https://forums.suse.com/t/rancher-ha-default-log-levels/6253 "2017-04-26T23:33:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zot24](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zot24/32/1469_2.png) [@zot24](https://forums.suse.com/u/zot24)\
**Post date:** [April 26, 2017, 11:33pm UTC](https://forums.suse.com/t/rancher-ha-default-log-levels/6253/1 "2017-04-26T23:33:06Z")

</div>

Hi guys!

I just deployed the latest version of Rancher HA server and configure the docker containers log driver to sent data to an external log system the problem is that by default Rancher HA logs at `info` level. I was wondering if there is a way to change the levels to warn or error and do not expose some sensible data like e.g. when it run the following command, it expose a lot of sensible information about the database connection as `info` log level:

```auto
/usr/bin/entry --db-host XXX --db-name XXX --db-port XXX --db-user XXX --db-pass XXX --advertise-address XXX

```

Thanks,

---

<div class="post-metadata">

**Author:** ![zot24](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zot24/32/1469_2.png) [@zot24](https://forums.suse.com/u/zot24)\
**Post date:** [April 27, 2017, 10:50am UTC](https://forums.suse.com/t/rancher-ha-default-log-levels/6253/2 "2017-04-27T10:50:30Z")

</div>

I believe that log entry I’m seeing it’s coming from [https://github.com/rancher/rancher/blob/9fb7750a1a9e83e8a49f58a92020f8b42941b5a5/server/bin/entry](https://github.com/rancher/rancher/blob/9fb7750a1a9e83e8a49f58a92020f8b42941b5a5/server/bin/entry)

---

<div class="post-metadata">

**Author:** ![zot24](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zot24/32/1469_2.png) [@zot24](https://forums.suse.com/u/zot24)\
**Post date:** [April 27, 2017, 11:42am UTC](https://forums.suse.com/t/rancher-ha-default-log-levels/6253/3 "2017-04-27T11:42:29Z")

</div>

Ok I have remove the shell stdout running the Rancher server like:

```auto
docker run -d --name=rancher-ha-server -p 8080:8080 -p 9345:9345 --entrypoint /bin/sh rancher/server -c "/usr/bin/entry /usr/bin/s6-svscan /service > /dev/null"

```

Making use of `> /dev/null` redirects `stdout` to null however I’m still seeing internal Rancher `info` logs that I would like to remove and just show `warn` levels

---

<div class="post-metadata">

**Author:** ![zot24](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zot24/32/1469_2.png) [@zot24](https://forums.suse.com/u/zot24)\
**Post date:** [April 27, 2017, 1:37pm UTC](https://forums.suse.com/t/rancher-ha-default-log-levels/6253/4 "2017-04-27T13:37:05Z")

</div>

Not sure anymore it’s a problem related with the log level despite the fact that I could configure it to just log `warn` log level I think it will still show sensible data even for `fatal` log level like on this log entry example:

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/3/30b6574955d12f6d7a2bef4c791eb4c30deec2ed.png)

Were you can see the db user password URL etc…

---

<div class="post-metadata">

**Author:** ![zot24](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zot24/32/1469_2.png) [@zot24](https://forums.suse.com/u/zot24)\
**Post date:** [April 27, 2017, 5:42pm UTC](https://forums.suse.com/t/rancher-ha-default-log-levels/6253/5 "2017-04-27T17:42:23Z")

</div>

I have created an issue to follow up this problem jtlyk this is the link [https://github.com/rancher/rancher/issues/8605](https://github.com/rancher/rancher/issues/8605)
