Change log level on a rabbitmq docker container

1,986 views
Skip to first unread message

Stan Wiechers

unread,
Sep 26, 2022, 8:50:08 AM9/26/22
to rabbitmq-users

According to the documentation configuration changes such as logging changes can be adjusted via an additional .conf file in a separate folder that is declared via the RABBITMQ_CONFIG_FILES environment variable.

FROM rabbitmq:3.10
ENV RABBITMQ_CONFIG_FILES=/local/my-conf.d/ 
COPY ./config/ /local/my-conf.d/ 
RUN chown -r rabbitmq:rabbitmq /local/my-conf.d/

In my local conf folder I have the file 'disable_logging.conf' with the log level change.

log.console.level = error

I build the image that way

docker build -t rabbitmqlocal .

and run it that way

docker run rabbitmqlocal

Whatever I do, I tried various .conf files, with or without `chown' rabbitmq always stops the boot process with this line in the logs

2022-09-26 12:41:03.377639+00:00 [notice] <0.44.0> Application syslog exited with reason: stopped
...
  Config file(s): /local/my-conf.d/disable_logging.conf
 

How do I change log level on a local rabbitmq docker container?

Luke Bakken

unread,
Sep 28, 2022, 11:44:53 PM9/28/22
to rabbitmq-users
Please see my response here: https://stackoverflow.com/a/73889994/1466825
Reply all
Reply to author
Forward
0 new messages